Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.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.Actions2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009156/0.0009156, allocations: 176.2 kB / 7.643 MB, free: 1.414 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.4/1.4, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.001025/0.001025, allocations: 98.95 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08423/0.08423, allocations: 13.57 MB / 344.8 MB, free: 1.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.723e-05/1.724e-05, allocations: 2.312 kB / 404.7 MB, free: 45.69 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 53.72 MB / 458.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.4917, allocations: 76.51 MB / 0.5224 GB, free: 23.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001429/0.4919, allocations: 48.25 kB / 0.5225 GB, free: 23.21 MB / 362.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 - DAE generated: time 0.02058/0.5125, allocations: 8.267 MB / 0.5306 GB, free: 22.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5125, allocations: 0 / 0.5306 GB, free: 22.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.45e-05/0.5126, allocations: 20.86 kB / 0.5306 GB, free: 22.36 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.0009653/0.5135, allocations: 0.7363 MB / 0.5313 GB, free: 21.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.5136, allocations: 10.34 kB / 0.5313 GB, free: 21.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.5137, allocations: 73.84 kB / 0.5314 GB, free: 21.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006728/0.5144, allocations: 430.1 kB / 0.5318 GB, free: 21.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.5145, allocations: 22.88 kB / 0.5318 GB, free: 21.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.404e-05/0.5146, allocations: 47.33 kB / 0.5319 GB, free: 21.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009512/0.5155, allocations: 462.2 kB / 0.5323 GB, free: 21.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.5168, allocations: 0.6912 MB / 0.533 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.5168, allocations: 2.984 kB / 0.533 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.5169, allocations: 3.875 kB / 0.533 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.614e-05/0.5169, allocations: 26.91 kB / 0.533 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.5199, allocations: 2.991 MB / 0.5359 GB, free: 19.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.5205, allocations: 0.6486 MB / 0.5366 GB, free: 18.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.5207, allocations: 110.5 kB / 0.5367 GB, free: 18.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-05/0.5208, allocations: 84.88 kB / 0.5367 GB, free: 18.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.5211, allocations: 188.7 kB / 0.5369 GB, free: 18.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.066e-06/0.5211, allocations: 0 / 0.5369 GB, free: 18.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006416/0.5217, allocations: 291.8 kB / 0.5372 GB, free: 18.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.668e-05/0.5218, allocations: 192.7 kB / 0.5374 GB, free: 18.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.5223, allocations: 335.1 kB / 0.5377 GB, free: 18.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.5223, allocations: 40.89 kB / 0.5377 GB, free: 18.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.5225, allocations: 284.3 kB / 0.538 GB, free: 18.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/0.5226, allocations: 95.09 kB / 0.5381 GB, free: 18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.625e-05/0.5226, allocations: 0 / 0.5381 GB, free: 18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007739/0.5234, allocations: 354.1 kB / 0.5384 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.5236, allocations: 125.3 kB / 0.5386 GB, free: 33.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000391/0.524, allocations: 388.8 kB / 0.5389 GB, free: 33.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/0.5245, allocations: 182.3 kB / 0.5391 GB, free: 33.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.5245, allocations: 2.125 kB / 0.5391 GB, free: 33.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001233/0.5257, allocations: 0.4926 MB / 0.5396 GB, free: 33.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.5258, allocations: 11.98 kB / 0.5396 GB, free: 33.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.5258, allocations: 7.719 kB / 0.5396 GB, free: 33.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.354e-05/0.5258, allocations: 13 kB / 0.5396 GB, free: 33.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.526, allocations: 47.95 kB / 0.5397 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.5261, allocations: 23.7 kB / 0.5397 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.5264, allocations: 27.39 kB / 0.5397 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.5265, allocations: 32.72 kB / 0.5397 GB, free: 33.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 93 ($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,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$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.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$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.fire,T5.enableFire,$PRE.T5.t_start,T5.t_start,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.risingEdge.u,risingEdge.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.fallingEdge.not_u,fallingEdge.not_u,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 (93): * Single equations (assignments): 93 * 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.0001957/0.5267, allocations: 172.9 kB / 0.5399 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.5268, allocations: 38.38 kB / 0.5399 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005561/0.5273, allocations: 312.5 kB / 0.5402 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.5273, allocations: 3.938 kB / 0.5402 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.5273, allocations: 64 / 0.5402 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.5274, allocations: 13.09 kB / 0.5403 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.5287, allocations: 0.8735 MB / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5287, allocations: 0 / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.554e-05/0.5288, allocations: 12.59 kB / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5288, allocations: 3.547 kB / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.5288, allocations: 6.859 kB / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.5288, allocations: 3.25 kB / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5288, allocations: 0 / 0.5411 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.5293, allocations: 392.4 kB / 0.5415 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.5294, allocations: 144.8 kB / 0.5417 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.5295, allocations: 5.391 kB / 0.5417 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.5297, allocations: 24.08 kB / 0.5417 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5298, allocations: 47.8 kB / 0.5417 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.5299, allocations: 15.72 kB / 0.5417 GB, free: 32.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001835/0.53, allocations: 190.2 kB / 0.5419 GB, free: 32.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5301, allocations: 7.938 kB / 0.5419 GB, free: 32.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005286/0.5306, allocations: 88.09 kB / 0.542 GB, free: 32.29 MB / 378.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: 46 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.enableFire,T3.enableFire,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.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.fire,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,risingEdge.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,fallingEdge.not_u) * Number of discrete states: 8 (step1.newActive,step4.newActive,step3.newActive,fallingEdge.not_u,step2.newActive,initialStep.newActive,risingEdge.u,set1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0002026/0.5308, allocations: 123.9 kB / 0.5421 GB, free: 32.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004741/0.5313, allocations: 358.5 kB / 0.5425 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5313, allocations: 0 / 0.5425 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.5315, allocations: 141 kB / 0.5426 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.5317, allocations: 39.38 kB / 0.5426 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009627/0.5327, allocations: 0.5921 MB / 0.5432 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.5332, allocations: 0.9013 MB / 0.5441 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002111/0.5334, allocations: 80.03 kB / 0.5442 GB, free: 31.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.729e-05/0.5335, allocations: 41.77 kB / 0.5442 GB, free: 31.21 MB / 378.7 MB Notification: Performance of SimCode: time 5e-07/0.5335, allocations: 0 / 0.5442 GB, free: 31.21 MB / 378.7 MB Notification: Performance of Templates: time 0.007728/0.5412, allocations: 3.86 MB / 0.548 GB, free: 30.93 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe 2>&1)