Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005839/0.005839, allocations: 100.7 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 207.7 MB / 236.1 MB, free: 9.816 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 54.73 kB / 347.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.249, allocations: 49.15 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002226/0.2512, allocations: 1.456 MB / 398.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005232/0.2518, allocations: 241.7 kB / 398.8 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.732e-05/0.2518, allocations: 3.156 kB / 398.8 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.2519, allocations: 26.41 kB / 398.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.877e-05/0.252, allocations: 29.77 kB / 398.8 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.2524, allocations: 115.5 kB / 399 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00029/0.2527, allocations: 264.2 kB / 399.2 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.2529, allocations: 142.3 kB / 399.4 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.411e-05/0.253, allocations: 83.33 kB / 399.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.2531, allocations: 98.3 kB / 399.5 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.2532, allocations: 23.19 kB / 399.6 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.053e-05/0.2533, allocations: 36.75 kB / 399.6 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-05/0.2533, allocations: 58.59 kB / 399.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.702e-05/0.2534, allocations: 77.09 kB / 399.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.2537, allocations: 244.5 kB / 400 MB, free: 7.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2537, allocations: 0 / 400 MB, free: 7.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2537, allocations: 0 / 400 MB, free: 7.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2537, allocations: 1.75 kB / 400 MB, free: 7.137 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005886/0.2543, allocations: 414.4 kB / 400.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2543, allocations: 14.73 kB / 400.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.334e-05/0.2544, allocations: 14.56 kB / 400.4 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/0.2544, allocations: 59.09 kB / 400.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.2545, allocations: 24.58 kB / 400.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.2547, allocations: 162.9 kB / 400.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.2548, allocations: 25.38 kB / 400.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.2548, allocations: 29.23 kB / 400.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004507/0.2553, allocations: 241.4 kB / 400.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2553, allocations: 1.656 kB / 400.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.2553, allocations: 10.94 kB / 400.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2553, allocations: 9.172 kB / 401 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.2556, allocations: 160.8 kB / 401.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008918/0.2565, allocations: 0.6206 MB / 401.7 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.2568, allocations: 152.9 kB / 401.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.2569, allocations: 70.02 kB / 401.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2569, allocations: 6.906 kB / 402 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.2571, allocations: 123.1 kB / 402.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2571, allocations: 0 / 402.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004009/0.2575, allocations: 219.2 kB / 402.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.2576, allocations: 60.66 kB / 402.3 MB, free: 5.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.018e-05/0.2576, allocations: 151.6 kB / 402.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2577, allocations: 38.53 kB / 402.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.2577, allocations: 139 kB / 402.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.2578, allocations: 58.27 kB / 402.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.762e-05/0.2579, allocations: 77.08 kB / 402.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.943e-05/0.2579, allocations: 323.7 kB / 403.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.258, allocations: 66.8 kB / 403.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.2582, allocations: 126.4 kB / 403.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.2584, allocations: 176.5 kB / 403.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2584, allocations: 3.938 kB / 403.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003234/0.2587, allocations: 244.1 kB / 403.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2587, allocations: 5.781 kB / 403.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2587, allocations: 3.594 kB / 403.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2587, allocations: 7.281 kB / 403.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.2589, allocations: 27.8 kB / 403.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2589, allocations: 4.125 kB / 403.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.156e-05/0.259, allocations: 29.38 kB / 403.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.259, allocations: 13.84 kB / 403.8 MB, free: 4.422 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.2591, allocations: 162.2 kB / 404 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.2591, allocations: 14 kB / 404 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.2595, allocations: 198 kB / 404.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2595, allocations: 2.656 kB / 404.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2595, allocations: 4.797 kB / 404.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2595, allocations: 1.312 kB / 404.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005984/0.2601, allocations: 0.5245 MB / 404.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2601, allocations: 0 / 404.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-05/0.2601, allocations: 19.77 kB / 404.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2602, allocations: 1.531 kB / 404.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.2602, allocations: 5.375 kB / 404.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.2602, allocations: 5.062 kB / 404.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2602, allocations: 7.328 kB / 404.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.2604, allocations: 276.4 kB / 405 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.2605, allocations: 24.41 kB / 405 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.2605, allocations: 5.094 kB / 405 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.2606, allocations: 11.34 kB / 405.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.521e-05/0.2607, allocations: 27.67 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2607, allocations: 4.594 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.867e-05/0.2607, allocations: 96.83 kB / 405.2 MB, free: 3.477 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2607, allocations: 0 / 405.2 MB, free: 3.477 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.261, allocations: 49.39 kB / 405.2 MB, free: 3.461 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004238/0.2614, allocations: 0.8186 MB / 406 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002927/0.2617, allocations: 173.7 kB / 406.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2617, allocations: 0 / 406.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2619, allocations: 82.27 kB / 406.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.2621, allocations: 23.39 kB / 406.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.2638, allocations: 2.013 MB / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.779e-05/0.2639, allocations: 122.7 kB / 408.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.569e-05/0.264, allocations: 24.81 kB / 408.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.769e-05/0.2641, allocations: 63.94 kB / 408.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2641, allocations: 0 / 408.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.2874, allocations: 4.012 MB / 412.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.02, allocations: 19.27 kB / 412.6 MB, free: 15.39 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --stepSize=0.000998801 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.33882955799345] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.174033300951123 11.188018892 10.931492876 Calling exit ...