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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009419/0.000942, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008332/0.0008334, allocations: 99.45 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08506/0.08506, allocations: 13.57 MB / 350.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.992e-05/2.995e-05, allocations: 8 kB / 411.6 MB, free: 55.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09396, allocations: 53.7 MB / 465.3 MB, free: 2.008 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4576, allocations: 77.28 MB / 0.5299 GB, free: 3.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001603/0.4578, allocations: 48.05 kB / 0.5299 GB, free: 3.422 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 - DAE generated: time 0.02076/0.4786, allocations: 8.425 MB / 0.5382 GB, free: 12.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4787, allocations: 0 / 0.5382 GB, free: 12.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.068e-05/0.4787, allocations: 31.92 kB / 0.5382 GB, free: 12.23 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.001168/0.4799, allocations: 0.7438 MB / 0.5389 GB, free: 11.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.4799, allocations: 8.031 kB / 0.5389 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.4801, allocations: 75.16 kB / 0.539 GB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008197/0.4809, allocations: 449.9 kB / 0.5394 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.219e-05/0.481, allocations: 58 kB / 0.5395 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.385e-05/0.4811, allocations: 79.92 kB / 0.5396 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.4824, allocations: 0.8037 MB / 0.5403 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.4824, allocations: 4 kB / 0.5403 GB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.4825, allocations: 32 kB / 0.5404 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.4826, allocations: 25.31 kB / 0.5404 GB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000861/0.4834, allocations: 0.4971 MB / 0.5409 GB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.4869, allocations: 3.225 MB / 0.544 GB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006628/0.4876, allocations: 0.6661 MB / 0.5447 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.4878, allocations: 116.8 kB / 0.5448 GB, free: 4.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.4879, allocations: 93.05 kB / 0.5449 GB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003203/0.4882, allocations: 182.7 kB / 0.5451 GB, free: 4.652 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.385e-06/0.4882, allocations: 0 / 0.5451 GB, free: 4.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.0005532/0.4888, allocations: 321.1 kB / 0.5454 GB, free: 4.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.4889, allocations: 199.9 kB / 0.5456 GB, free: 4.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.4893, allocations: 349.9 kB / 0.5459 GB, free: 3.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.497e-05/0.4894, allocations: 45.7 kB / 0.5459 GB, free: 3.699 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.4896, allocations: 300.1 kB / 0.5462 GB, free: 3.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.979e-05/0.4897, allocations: 94.94 kB / 0.5463 GB, free: 3.305 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.4898, allocations: 16 kB / 0.5463 GB, free: 3.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4899, allocations: 350.8 kB / 0.5467 GB, free: 2.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.4901, allocations: 133.5 kB / 0.5468 GB, free: 2.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.4906, allocations: 402.6 kB / 0.5472 GB, free: 2.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.4909, allocations: 189.6 kB / 0.5474 GB, free: 2.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4909, allocations: 0 / 0.5474 GB, free: 2.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008009/0.4917, allocations: 0.5583 MB / 0.5479 GB, free: 1.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.4917, allocations: 13.88 kB / 0.5479 GB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4917, allocations: 4 kB / 0.5479 GB, free: 1.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.314e-05/0.4918, allocations: 19.94 kB / 0.5479 GB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.492, allocations: 55.78 kB / 0.548 GB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.492, allocations: 15.98 kB / 0.548 GB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.4923, allocations: 51.81 kB / 0.5481 GB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.4924, allocations: 36.06 kB / 0.5481 GB, free: 1.348 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.0001783/0.4926, allocations: 184.7 kB / 0.5483 GB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.255e-05/0.4926, allocations: 43.48 kB / 0.5483 GB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005361/0.4932, allocations: 345.7 kB / 0.5486 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.4932, allocations: 15.98 kB / 0.5487 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4932, allocations: 0 / 0.5487 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4932, allocations: 0 / 0.5487 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.4947, allocations: 1.022 MB / 0.5497 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4947, allocations: 0 / 0.5497 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.675e-05/0.4948, allocations: 19.92 kB / 0.5497 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.4948, allocations: 8 kB / 0.5497 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.4948, allocations: 8 kB / 0.5497 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4948, allocations: 0 / 0.5497 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4948, allocations: 3.953 kB / 0.5497 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.4953, allocations: 418.8 kB / 0.5501 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.4955, allocations: 136.6 kB / 0.5502 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/0.4955, allocations: 12 kB / 0.5502 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.4957, allocations: 31.97 kB / 0.5503 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.4958, allocations: 51.8 kB / 0.5503 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.4959, allocations: 15.95 kB / 0.5503 GB, free: 14.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.4961, allocations: 214.1 kB / 0.5505 GB, free: 14.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4961, allocations: 0 / 0.5505 GB, free: 14.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000609/0.4967, allocations: 100 kB / 0.5506 GB, free: 14.64 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: 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.0002561/0.4969, allocations: 143.4 kB / 0.5508 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005911/0.4975, allocations: 376.1 kB / 0.5511 GB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4976, allocations: 4.062 kB / 0.5511 GB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.4978, allocations: 143.6 kB / 0.5513 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.4981, allocations: 41.75 kB / 0.5513 GB, free: 13.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.4992, allocations: 0.6102 MB / 0.5519 GB, free: 13.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005136/0.4998, allocations: 0.9028 MB / 0.5528 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.5, allocations: 84.36 kB / 0.5529 GB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.69e-05/0.5001, allocations: 43.42 kB / 0.5529 GB, free: 12.26 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5001, allocations: 3.938 kB / 0.5529 GB, free: 12.25 MB / 378.7 MB Notification: Performance of Templates: time 0.01051/0.5106, allocations: 4.025 MB / 0.5568 GB, free: 8.262 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)