Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001071/0.00107, allocations: 183 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.2 MB / 214.1 MB, free: 5.445 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001255, allocations: 83.39 kB / 262.1 MB, free: 5.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2301/0.2314, allocations: 52.96 MB / 315 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.3235, allocations: 47.57 MB / 362.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.6422, allocations: 76.01 MB / 438.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.6425, allocations: 72.38 kB / 438.7 MB, free: 10.66 MB / 314.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.03327/0.6758, allocations: 14.04 MB / 452.7 MB, free: 6.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.014e-05/0.6759, allocations: 7.688 kB / 452.8 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005475/0.6764, allocations: 105 kB / 452.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009096/0.6774, allocations: 494.8 kB / 453.3 MB, free: 6.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.433e-05/0.6775, allocations: 47.52 kB / 453.4 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.6777, allocations: 68.69 kB / 453.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001669/0.6794, allocations: 0.7456 MB / 454.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.681, allocations: 0.9072 MB / 455.1 MB, free: 5.938 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.681, allocations: 0 / 455.1 MB, free: 5.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.77e-05/0.6811, allocations: 11.66 kB / 455.1 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.6812, allocations: 23 kB / 455.1 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003579/0.6847, allocations: 2.754 MB / 457.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.6858, allocations: 0.6115 MB / 458.5 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.6862, allocations: 333.2 kB / 458.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.117e-05/0.6863, allocations: 12.19 kB / 458.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005784/0.6869, allocations: 385 kB / 459.2 MB, free: 4.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.36e-06/0.6869, allocations: 0 / 459.2 MB, free: 4.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.001206/0.6881, allocations: 0.5666 MB / 459.8 MB, free: 4.027 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.6882, allocations: 82.48 kB / 459.9 MB, free: 3.957 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.6886, allocations: 310.9 kB / 460.2 MB, free: 3.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.6888, allocations: 56.81 kB / 460.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.689, allocations: 302.6 kB / 460.5 MB, free: 3.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.6893, allocations: 239.7 kB / 460.8 MB, free: 3.398 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/0.6894, allocations: 3.938 kB / 460.8 MB, free: 3.395 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.6895, allocations: 373.8 kB / 461.1 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.69, allocations: 278.2 kB / 461.4 MB, free: 3.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008297/0.6908, allocations: 0.4891 MB / 461.9 MB, free: 2.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007499/0.6916, allocations: 292.7 kB / 462.2 MB, free: 2.738 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.6916, allocations: 1.344 kB / 462.2 MB, free: 2.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001719/0.6933, allocations: 0.8353 MB / 463 MB, free: 2.547 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.6934, allocations: 5.312 kB / 463 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.6934, allocations: 6.562 kB / 463 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.74e-05/0.6934, allocations: 13.06 kB / 463 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/0.6939, allocations: 127 kB / 463.2 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.828e-05/0.6939, allocations: 20.83 kB / 463.2 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.6944, allocations: 58.27 kB / 463.2 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.6945, allocations: 53.89 kB / 463.3 MB, free: 2.465 MB / 314.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: 133 ($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,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 (165): * Single equations (assignments): 165 * 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.0002371/0.6948, allocations: 205.8 kB / 463.5 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.6949, allocations: 51.56 kB / 463.5 MB, free: 2.277 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.6962, allocations: 0.6465 MB / 464.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.6962, allocations: 10.69 kB / 464.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.6962, allocations: 4 kB / 464.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.6962, allocations: 9.281 kB / 464.2 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.6991, allocations: 1.574 MB / 465.8 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.6991, allocations: 1 kB / 465.8 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.6994, allocations: 76.52 kB / 465.9 MB, free: 1.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.475e-05/0.6995, allocations: 11.45 kB / 465.9 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-05/0.6995, allocations: 10.7 kB / 465.9 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.6996, allocations: 11.33 kB / 465.9 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6996, allocations: 1.156 kB / 465.9 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001419/0.701, allocations: 0.7015 MB / 466.6 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001183/0.7022, allocations: 1.076 MB / 467.7 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.7023, allocations: 123.4 kB / 467.8 MB, free: 472 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.814e-05/0.7024, allocations: 11.42 kB / 467.8 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.7027, allocations: 30.44 kB / 467.8 MB, free: 456 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/0.703, allocations: 123.2 kB / 467.9 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.7031, allocations: 40.48 kB / 468 MB, free: 396 kB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001559/0.7032, allocations: 156.8 kB / 468.1 MB, free: 300 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001615/0.7048, allocations: 148.6 kB / 468.3 MB, free: 284 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 80 (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: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0003384/0.7052, allocations: 149 kB / 468.4 MB, free: 164 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.7069, allocations: 0.7698 MB / 469.2 MB, free: 92 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.7069, allocations: 4.125 kB / 469.2 MB, free: 88 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.7076, allocations: 382.3 kB / 469.6 MB, free: 56 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.7081, allocations: 56.59 kB / 469.6 MB, free: 44 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.7114, allocations: 1.052 MB / 470.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/0.7127, allocations: 1.067 MB / 471.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of SimCode: time 2.615e-06/0.7127, allocations: 1.094 kB / 471.8 MB, free: 14.84 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_ShowCompositeStep_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_ShowCompositeStep.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.ShowCompositeStep.pipe 2>&1)