Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.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.Actions3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3") [: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.002292/0.002292, allocations: 180.7 kB / 7.455 MB, free: 2.508 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.18/1.18, allocations: 221.4 MB / 229.3 MB, free: 3.098 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.0009138/0.0009137, allocations: 97.66 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.07746/0.07746, allocations: 13.58 MB / 344.5 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.024e-06/7.164e-06, allocations: 0 / 404.2 MB, free: 61.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08432, allocations: 53.71 MB / 457.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2889/0.3733, allocations: 76.82 MB / 0.5222 GB, free: 6.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001474/0.3735, allocations: 47.55 kB / 0.5222 GB, free: 6.043 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.02035/0.3938, allocations: 8.057 MB / 0.5301 GB, free: 15.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.621e-05/0.3939, allocations: 23.92 kB / 0.5301 GB, free: 15.4 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.0009863/0.3949, allocations: 0.7448 MB / 0.5309 GB, free: 14.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.395, allocations: 12.03 kB / 0.5309 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3951, allocations: 75.06 kB / 0.5309 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000766/0.3959, allocations: 443.7 kB / 0.5314 GB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.3959, allocations: 27.69 kB / 0.5314 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.787e-05/0.396, allocations: 47.98 kB / 0.5314 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008705/0.3969, allocations: 470.9 kB / 0.5319 GB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.398, allocations: 0.7129 MB / 0.5326 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.398, allocations: 0 / 0.5326 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.3981, allocations: 7.938 kB / 0.5326 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.383e-05/0.3981, allocations: 29.3 kB / 0.5326 GB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003645/0.4018, allocations: 3.085 MB / 0.5356 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006087/0.4024, allocations: 0.6219 MB / 0.5362 GB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.4026, allocations: 105.8 kB / 0.5363 GB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.4027, allocations: 92.05 kB / 0.5364 GB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.403, allocations: 177.4 kB / 0.5366 GB, free: 9.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.376e-06/0.403, allocations: 0 / 0.5366 GB, free: 9.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.0005877/0.4036, allocations: 265 kB / 0.5368 GB, free: 8.953 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.4037, allocations: 195.9 kB / 0.537 GB, free: 8.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.4041, allocations: 339.3 kB / 0.5374 GB, free: 8.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.4041, allocations: 33.08 kB / 0.5374 GB, free: 8.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.4043, allocations: 263.1 kB / 0.5376 GB, free: 8.191 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.943e-05/0.4044, allocations: 99.78 kB / 0.5377 GB, free: 8.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/0.4044, allocations: 0 / 0.5377 GB, free: 8.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4046, allocations: 353.3 kB / 0.5381 GB, free: 7.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.4048, allocations: 120.2 kB / 0.5382 GB, free: 7.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.4052, allocations: 388.7 kB / 0.5386 GB, free: 7.254 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.4055, allocations: 174 kB / 0.5387 GB, free: 7.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4055, allocations: 0 / 0.5387 GB, free: 7.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008318/0.4064, allocations: 493.8 kB / 0.5392 GB, free: 6.715 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4064, allocations: 7.938 kB / 0.5392 GB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.4064, allocations: 12.12 kB / 0.5392 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/0.4065, allocations: 12 kB / 0.5392 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.4067, allocations: 57.66 kB / 0.5393 GB, free: 6.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.4067, allocations: 23.86 kB / 0.5393 GB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.4071, allocations: 35.89 kB / 0.5393 GB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/0.4071, allocations: 30.06 kB / 0.5394 GB, free: 6.551 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 91 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.T5.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step4.oldActive,step4.oldActive,$PRE.step1.oldActive,step1.oldActive,$PRE.add1.y,add1.y,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.fire,T1.enableFire,$PRE.T1.t_start,T1.t_start,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,T2.firePort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.fire,T4.enableFire,$PRE.T4.t_start,T4.t_start,T5.enableFire,$PRE.T5.t_start,T5.t_start,T5.firePort,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.set1.y,set1.y,set1.firstActiveIndex,set1.expr[1],set1.expr[2],T5.condition,T4.condition,T3.condition,T2.condition,T1.condition,T5.outPort.checkOneDelayedTransitionPerLoop,step1.outPort[1].checkOneDelayedTransitionPerLoop,step1.inPort[1].checkUnaryConnection,T4.outPort.checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,T1.outPort.checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * 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.0002065/0.4073, allocations: 175.2 kB / 0.5395 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.4074, allocations: 39.53 kB / 0.5396 GB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005488/0.408, allocations: 291.2 kB / 0.5398 GB, free: 6.117 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.408, allocations: 4 kB / 0.5399 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.408, allocations: 0 / 0.5399 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.408, allocations: 0 / 0.5399 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.4095, allocations: 0.8609 MB / 0.5407 GB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4096, allocations: 0 / 0.5407 GB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.463e-05/0.4096, allocations: 14.17 kB / 0.5407 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4096, allocations: 0 / 0.5407 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.4097, allocations: 12.92 kB / 0.5407 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.4097, allocations: 3.938 kB / 0.5407 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4097, allocations: 4 kB / 0.5407 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005348/0.4102, allocations: 365 kB / 0.5411 GB, free: 5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.4104, allocations: 139.7 kB / 0.5412 GB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.589e-05/0.4105, allocations: 5.234 kB / 0.5412 GB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.4107, allocations: 28.66 kB / 0.5412 GB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4109, allocations: 38.44 kB / 0.5413 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.4109, allocations: 23.11 kB / 0.5413 GB, free: 4.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000192/0.4111, allocations: 184 kB / 0.5415 GB, free: 4.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005631/0.4117, allocations: 89.05 kB / 0.5416 GB, free: 4.539 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: 45 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.firePort,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.firePort,T5.enableFire,T3.enableFire,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,T3.fire,T3.t_start,step4.newActive,step4.oldActive,step4.inport_fire,T4.fire,T4.t_start,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,add1.y,set1.y,set1.firstActiveIndex) * Number of discrete states: 7 (step1.newActive,step4.newActive,step3.newActive,step2.newActive,initialStep.newActive,set1.y,add1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.0002371/0.4119, allocations: 127.1 kB / 0.5417 GB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.4125, allocations: 348.9 kB / 0.542 GB, free: 4.156 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4125, allocations: 0 / 0.542 GB, free: 4.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.4127, allocations: 141.5 kB / 0.5421 GB, free: 4.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.413, allocations: 48.16 kB / 0.5422 GB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.4143, allocations: 0.5933 MB / 0.5428 GB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000613/0.4149, allocations: 0.9524 MB / 0.5437 GB, free: 2.48 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4149, allocations: 0 / 0.5437 GB, free: 2.48 MB / 362.7 MB Notification: Performance of Templates: time 0.01036/0.4253, allocations: 4.532 MB / 0.5481 GB, free: 13.99 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe 2>&1)