Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009016/0.000902, allocations: 182 kB / 8.129 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.054/1.054, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008479/0.0008479, allocations: 104.9 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09037/0.09124, allocations: 55.8 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.2717, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08001/0.3518, allocations: 76.96 MB / 464 MB, free: 9.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.352, allocations: 67.91 kB / 464 MB, free: 9.75 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.03238/0.3844, allocations: 14.35 MB / 478.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.3845, allocations: 8 kB / 478.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.3847, allocations: 102.9 kB / 478.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007085/0.3854, allocations: 0.4907 MB / 479 MB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-05/0.3855, allocations: 44 kB / 479 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3856, allocations: 71.98 kB / 479.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001305/0.3869, allocations: 0.746 MB / 479.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.3884, allocations: 0.911 MB / 480.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.3884, allocations: 0 / 480.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.3885, allocations: 7.891 kB / 480.7 MB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.198e-05/0.3885, allocations: 31.98 kB / 480.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.3918, allocations: 2.738 MB / 483.5 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009695/0.3928, allocations: 0.6359 MB / 484.1 MB, free: 5.297 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00048/0.3933, allocations: 340.5 kB / 484.5 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.3934, allocations: 28.75 kB / 484.5 MB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005972/0.394, allocations: 435.5 kB / 484.9 MB, free: 4.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=105): time 3.426e-06/0.394, allocations: 0 / 484.9 MB, free: 4.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.001007/0.395, allocations: 0.577 MB / 485.5 MB, free: 3.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3951, allocations: 106 kB / 485.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.3954, allocations: 316.1 kB / 485.9 MB, free: 3.469 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.134e-05/0.3955, allocations: 57.69 kB / 486 MB, free: 3.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.3956, allocations: 301 kB / 486.3 MB, free: 3.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.3958, allocations: 240.8 kB / 486.5 MB, free: 2.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.53e-05/0.3959, allocations: 0 / 486.5 MB, free: 2.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.396, allocations: 366.8 kB / 486.9 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.3965, allocations: 282.6 kB / 487.1 MB, free: 2.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00061/0.3971, allocations: 0.4918 MB / 487.6 MB, free: 1.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.3977, allocations: 298.1 kB / 487.9 MB, free: 1.359 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3977, allocations: 0 / 487.9 MB, free: 1.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.001334/0.399, allocations: 0.8414 MB / 488.8 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.399, allocations: 8 kB / 488.8 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.399, allocations: 4 kB / 488.8 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3991, allocations: 12 kB / 488.8 MB, free: 500 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003931/0.3995, allocations: 127.6 kB / 488.9 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.3995, allocations: 15.98 kB / 488.9 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.3998, allocations: 48.05 kB / 489 MB, free: 308 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-05/0.3999, allocations: 59.98 kB / 489 MB, free: 248 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 135 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,$PRE.transition7.t_start,transition7.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001934/0.4001, allocations: 212 kB / 489.2 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.4002, allocations: 47.48 kB / 489.3 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.4013, allocations: 0.6461 MB / 489.9 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.4014, allocations: 12 kB / 489.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4014, allocations: 0 / 489.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.4014, allocations: 11.95 kB / 490 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.4038, allocations: 1.594 MB / 491.5 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4038, allocations: 4 kB / 491.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.4041, allocations: 75.67 kB / 491.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4041, allocations: 4 kB / 491.6 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.4042, allocations: 11.98 kB / 491.6 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4042, allocations: 8 kB / 491.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4042, allocations: 4 kB / 491.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000992/0.4052, allocations: 0.7228 MB / 492.4 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00107/0.4063, allocations: 1.098 MB / 493.5 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.19e-05/0.4063, allocations: 124.4 kB / 493.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/0.4064, allocations: 15.98 kB / 493.6 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.4067, allocations: 23.97 kB / 493.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.4069, allocations: 128.8 kB / 493.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.097e-05/0.407, allocations: 35.98 kB / 493.8 MB, free: 11.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001176/0.4071, allocations: 153.2 kB / 493.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001031/0.4082, allocations: 151.8 kB / 494.1 MB, free: 11.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 81 (transition7.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 10 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002115/0.4084, allocations: 159.2 kB / 494.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.4095, allocations: 0.7712 MB / 495 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.4095, allocations: 0 / 495 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004774/0.41, allocations: 383.6 kB / 495.4 MB, free: 9.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.4103, allocations: 59.12 kB / 495.5 MB, free: 9.676 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.4124, allocations: 1.075 MB / 496.5 MB, free: 8.574 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007883/0.4132, allocations: 1.059 MB / 497.6 MB, free: 7.484 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4132, allocations: 0 / 497.6 MB, free: 7.484 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_ShowCompositeStep_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_ShowCompositeStep.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.ShowCompositeStep.pipe 2>&1)