Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001527/0.001527, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.368/1.368, allocations: 230.6 MB / 258.3 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 68.75 kB / 378.5 MB, free: 3.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2668, allocations: 53.36 MB / 431.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002801/0.2696, allocations: 1.698 MB / 433.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006923/0.2703, allocations: 295.1 kB / 433.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.2704, allocations: 7.938 kB / 433.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2705, allocations: 23.73 kB / 433.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.729e-05/0.2705, allocations: 19.73 kB / 433.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.2709, allocations: 127.8 kB / 434 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.2713, allocations: 279.4 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.2716, allocations: 159.5 kB / 434.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2717, allocations: 95.69 kB / 434.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.2718, allocations: 99.55 kB / 434.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.2719, allocations: 24 kB / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.285e-05/0.272, allocations: 35.92 kB / 434.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.418e-05/0.272, allocations: 63.81 kB / 434.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.2722, allocations: 103.5 kB / 434.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.2725, allocations: 259.7 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2725, allocations: 4 kB / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2725, allocations: 0 / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2725, allocations: 0 / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006949/0.2732, allocations: 417.2 kB / 435.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.2733, allocations: 16.02 kB / 435.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.588e-05/0.2733, allocations: 58.73 kB / 435.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002763/0.2736, allocations: 36.77 kB / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.2739, allocations: 170.2 kB / 435.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.2739, allocations: 28.88 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.274, allocations: 32.31 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.2744, allocations: 269.7 kB / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2744, allocations: 7.875 kB / 436.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.2744, allocations: 8 kB / 436.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.2744, allocations: 8 kB / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.2748, allocations: 165.6 kB / 436.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.2759, allocations: 0.9249 MB / 437.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.2762, allocations: 157.3 kB / 437.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.2763, allocations: 69.78 kB / 437.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.2763, allocations: 4 kB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.2765, allocations: 141 kB / 437.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.262e-06/0.2765, allocations: 0 / 437.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000421/0.277, allocations: 217.3 kB / 437.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.277, allocations: 93.08 kB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.2772, allocations: 156.5 kB / 438.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.2772, allocations: 37.7 kB / 438.1 MB, free: 476 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.2773, allocations: 140.7 kB / 438.3 MB, free: 328 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.362e-05/0.2774, allocations: 63.7 kB / 438.3 MB, free: 264 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.507e-05/0.2775, allocations: 81.64 kB / 438.4 MB, free: 176 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2776, allocations: 326.8 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2777, allocations: 67.75 kB / 438.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2779, allocations: 136.5 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.2782, allocations: 204.8 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2782, allocations: 0 / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003839/0.2786, allocations: 249.3 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2786, allocations: 8.281 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2786, allocations: 4 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.2786, allocations: 8 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.2787, allocations: 35.92 kB / 439.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2788, allocations: 7.938 kB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.133e-05/0.2788, allocations: 27.78 kB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.2789, allocations: 15.94 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001645/0.279, allocations: 165.6 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.1e-05/0.2791, allocations: 7.953 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.41e-05/0.2791, allocations: 20.94 kB / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2791, allocations: 4 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2791, allocations: 3.984 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2791, allocations: 7.922 kB / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007589/0.2799, allocations: 0.5501 MB / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2799, allocations: 0 / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.842e-05/0.2799, allocations: 16 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2799, allocations: 3.938 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.28, allocations: 11.92 kB / 440.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.28, allocations: 7.984 kB / 440.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.28, allocations: 0 / 440.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.2803, allocations: 272.1 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.041e-05/0.2803, allocations: 15.84 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.2803, allocations: 11.92 kB / 440.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.377e-05/0.2804, allocations: 8 kB / 440.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.2805, allocations: 23.97 kB / 440.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2805, allocations: 11.98 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.245e-05/0.2805, allocations: 95.27 kB / 440.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2805, allocations: 4 kB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.2808, allocations: 43.89 kB / 440.7 MB, free: 13.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006071/0.2814, allocations: 0.8251 MB / 441.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003064/0.2817, allocations: 167.8 kB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2817, allocations: 0 / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.2819, allocations: 71.77 kB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.2821, allocations: 25.69 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.2844, allocations: 2.07 MB / 443.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.2847, allocations: 0.7365 MB / 444.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.514e-05/0.2848, allocations: 21.95 kB / 444.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2849, allocations: 59.41 kB / 444.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2849, allocations: 0 / 444.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.3096, allocations: 3.676 MB / 448.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.098, allocations: 15.36 kB / 448.4 MB, free: 5.914 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.482541598845273] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.166462590917945 8.181587173 7.906068058 Calling exit ...