Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) 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: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence") [: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.002838/0.002838, allocations: 183 kB / 7.456 MB, free: 2.504 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.263/1.263, allocations: 221.4 MB / 229.3 MB, free: 3.035 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.001055/0.001055, allocations: 104 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.06481/0.06481, allocations: 13.58 MB / 344.5 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.971e-06/6.011e-06, allocations: 0 / 404.2 MB, free: 61.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.08197, allocations: 53.71 MB / 457.9 MB, free: 8.023 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2589/0.341, allocations: 76.44 MB / 0.5218 GB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001276/0.3411, allocations: 50.3 kB / 0.5219 GB, free: 6.402 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of FrontEnd: time 0.01003/0.3512, allocations: 3.849 MB / 0.5256 GB, free: 3.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.3512, allocations: 12 kB / 0.5256 GB, free: 3.258 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0004979/0.3517, allocations: 467.1 kB / 0.5261 GB, free: 2.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3518, allocations: 12.03 kB / 0.5261 GB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.875e-05/0.3519, allocations: 35.62 kB / 0.5261 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.3523, allocations: 279 kB / 0.5264 GB, free: 2.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.3523, allocations: 8 kB / 0.5264 GB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.3523, allocations: 24.64 kB / 0.5264 GB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003179/0.3527, allocations: 174.8 kB / 0.5266 GB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.3531, allocations: 307.2 kB / 0.5269 GB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.3531, allocations: 0 / 0.5269 GB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.3531, allocations: 0 / 0.5269 GB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.3531, allocations: 8 kB / 0.5269 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3544, allocations: 1.267 MB / 0.5281 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.3546, allocations: 262.5 kB / 0.5284 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.655e-05/0.3547, allocations: 39.61 kB / 0.5284 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.298e-05/0.3548, allocations: 96.69 kB / 0.5285 GB, free: 408 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.3548, allocations: 30.56 kB / 0.5285 GB, free: 368 kB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.3548, allocations: 0 / 0.5285 GB, free: 368 kB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000241/0.355, allocations: 111.5 kB / 0.5287 GB, free: 268 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.3551, allocations: 55.41 kB / 0.5287 GB, free: 200 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.3552, allocations: 181.1 kB / 0.5289 GB, free: 40 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.3553, allocations: 25.7 kB / 0.5289 GB, free: 8 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.3554, allocations: 161.9 kB / 0.5291 GB, free: 15.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.3554, allocations: 34.86 kB / 0.5291 GB, free: 15.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.3554, allocations: 0 / 0.5291 GB, free: 15.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3556, allocations: 329.8 kB / 0.5294 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.47e-05/0.3556, allocations: 38.56 kB / 0.5294 GB, free: 15.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3558, allocations: 150.6 kB / 0.5296 GB, free: 15.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.3559, allocations: 57.53 kB / 0.5296 GB, free: 15.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3559, allocations: 4 kB / 0.5296 GB, free: 15.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003128/0.3562, allocations: 205.7 kB / 0.5298 GB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3562, allocations: 7.984 kB / 0.5298 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.3563, allocations: 4 kB / 0.5298 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3563, allocations: 11.91 kB / 0.5299 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.707e-05/0.3564, allocations: 15.5 kB / 0.5299 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.3564, allocations: 15.92 kB / 0.5299 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.3565, allocations: 8.469 kB / 0.5299 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3565, allocations: 12 kB / 0.5299 GB, free: 15.01 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.step1.oldActive,step1.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,step1.active,$PRE.step1.newActive,step1.newActive,step1.outport_fire,T1.condition,T1.enableFire,step2.active,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.condition,T2.enableFire,step3.active,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step1.connectorNode.node.resume,step1.connectorNode.node.suspend,step3.outport_fire,step1.inport_fire,step3.inPort[1].checkUnaryConnection,step1.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001108/0.3566, allocations: 127.6 kB / 0.53 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.3567, allocations: 15.81 kB / 0.53 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.3569, allocations: 127.4 kB / 0.5302 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.357, allocations: 4 kB / 0.5302 GB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.357, allocations: 0 / 0.5302 GB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.357, allocations: 4 kB / 0.5302 GB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004915/0.3575, allocations: 435.4 kB / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3575, allocations: 0 / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.727e-05/0.3575, allocations: 4 kB / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3575, allocations: 3.938 kB / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.3575, allocations: 0 / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3575, allocations: 0 / 0.5306 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3575, allocations: 4 kB / 0.5306 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002031/0.3578, allocations: 213.7 kB / 0.5308 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.3578, allocations: 100.5 kB / 0.5309 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.3579, allocations: 0 / 0.5309 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.102e-05/0.3579, allocations: 0 / 0.5309 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.688e-05/0.358, allocations: 23.59 kB / 0.5309 GB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.358, allocations: 4 kB / 0.5309 GB, free: 13.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.671e-05/0.3581, allocations: 123.2 kB / 0.531 GB, free: 13.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.3584, allocations: 28 kB / 0.5311 GB, free: 13.86 MB / 362.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: 17 (step1.outport_fire,step2.outport_fire,step1.active,step1.newActive,step1.oldActive,T1.condition,T1.enableFire,step2.active,step2.newActive,step2.oldActive,step2.inport_fire,T2.condition,T2.enableFire,step3.active,step3.newActive,step3.oldActive,step3.inport_fire) * Number of discrete states: 3 (step3.newActive,step2.newActive,step1.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001673/0.3586, allocations: 114.5 kB / 0.5312 GB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001927/0.3588, allocations: 126.9 kB / 0.5313 GB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.3588, allocations: 0 / 0.5313 GB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.041e-05/0.3589, allocations: 42.56 kB / 0.5313 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.359, allocations: 12.94 kB / 0.5314 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004818/0.3595, allocations: 269.7 kB / 0.5316 GB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.3599, allocations: 0.7819 MB / 0.5324 GB, free: 12.53 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3599, allocations: 4 kB / 0.5324 GB, free: 12.52 MB / 362.7 MB Notification: Performance of Templates: time 0.004374/0.3643, allocations: 1.621 MB / 0.534 GB, free: 10.92 MB / 362.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe 2>&1)