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.001922/0.001922, allocations: 169.3 kB / 7.64 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.0009073/0.0009073, allocations: 96.47 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.08068/0.08068, allocations: 13.58 MB / 344.8 MB, free: 1.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.566e-05, allocations: 1.094 kB / 404.7 MB, free: 45.7 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.378/0.4959, allocations: 76.61 MB / 0.5225 GB, free: 23.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001316/0.4961, allocations: 51.05 kB / 0.5226 GB, free: 23.27 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.02126/0.5174, allocations: 8.36 MB / 0.5307 GB, free: 22.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5174, allocations: 1.375 kB / 0.5307 GB, free: 22.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.958e-05/0.5175, allocations: 19.12 kB / 0.5308 GB, free: 22.43 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.00114/0.5186, allocations: 0.7471 MB / 0.5315 GB, free: 21.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.5187, allocations: 9.688 kB / 0.5315 GB, free: 21.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.5188, allocations: 74.88 kB / 0.5316 GB, free: 21.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008351/0.5197, allocations: 444.6 kB / 0.532 GB, free: 21.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.505e-05/0.5198, allocations: 26.16 kB / 0.532 GB, free: 21.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.846e-05/0.5199, allocations: 44.89 kB / 0.5321 GB, free: 21.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001195/0.5211, allocations: 465 kB / 0.5325 GB, free: 21.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.5224, allocations: 0.7034 MB / 0.5332 GB, free: 21.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.5224, allocations: 5.391 kB / 0.5332 GB, free: 21.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.5225, allocations: 8 kB / 0.5332 GB, free: 21.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.18e-05/0.5225, allocations: 27.3 kB / 0.5332 GB, free: 21.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002714/0.5253, allocations: 3.086 MB / 0.5362 GB, free: 19.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.5257, allocations: 0.6367 MB / 0.5369 GB, free: 18.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.5259, allocations: 103.8 kB / 0.537 GB, free: 18.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.119e-05/0.5259, allocations: 91.09 kB / 0.5371 GB, free: 18.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.5262, allocations: 170 kB / 0.5372 GB, free: 18.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.793e-06/0.5262, allocations: 480 / 0.5372 GB, free: 18.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.0005231/0.5267, allocations: 297.4 kB / 0.5375 GB, free: 18.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.5268, allocations: 201 kB / 0.5377 GB, free: 18.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.5271, allocations: 336.3 kB / 0.538 GB, free: 18.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.5272, allocations: 37.72 kB / 0.538 GB, free: 18.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.5273, allocations: 292.2 kB / 0.5383 GB, free: 17.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/0.5274, allocations: 91.22 kB / 0.5384 GB, free: 17.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.5274, allocations: 0 / 0.5384 GB, free: 17.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005989/0.528, allocations: 353.2 kB / 0.5388 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.5282, allocations: 117 kB / 0.5389 GB, free: 33.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.5286, allocations: 388.9 kB / 0.5392 GB, free: 33.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.5289, allocations: 173.4 kB / 0.5394 GB, free: 33.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.5289, allocations: 2.594 kB / 0.5394 GB, free: 33.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009357/0.5298, allocations: 0.4911 MB / 0.5399 GB, free: 33.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.5299, allocations: 9.969 kB / 0.5399 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5299, allocations: 11.47 kB / 0.5399 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.5299, allocations: 13.41 kB / 0.5399 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.5301, allocations: 56.69 kB / 0.54 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.5301, allocations: 17.7 kB / 0.54 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.5305, allocations: 32.8 kB / 0.54 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.5305, allocations: 29.34 kB / 0.54 GB, free: 33.12 MB / 378.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.0001793/0.5307, allocations: 169.4 kB / 0.5402 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.5308, allocations: 43.48 kB / 0.5402 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005131/0.5313, allocations: 313.2 kB / 0.5405 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.5313, allocations: 9.969 kB / 0.5406 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5313, allocations: 0 / 0.5406 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.5313, allocations: 4 kB / 0.5406 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.5326, allocations: 0.8974 MB / 0.5414 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5326, allocations: 0 / 0.5414 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.98e-05/0.5327, allocations: 16.03 kB / 0.5415 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.5327, allocations: 1.594 kB / 0.5415 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.5327, allocations: 5.609 kB / 0.5415 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.5328, allocations: 5.75 kB / 0.5415 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5328, allocations: 0 / 0.5415 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.5332, allocations: 399.3 kB / 0.5418 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.5333, allocations: 134.8 kB / 0.542 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.5334, allocations: 4.703 kB / 0.542 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.5336, allocations: 25.7 kB / 0.542 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.5337, allocations: 44.97 kB / 0.542 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.5338, allocations: 12.59 kB / 0.5421 GB, free: 32.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.5339, allocations: 189.6 kB / 0.5422 GB, free: 32.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5339, allocations: 0 / 0.5422 GB, free: 32.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005043/0.5344, allocations: 83.52 kB / 0.5423 GB, free: 32.21 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.0002024/0.5347, allocations: 134 kB / 0.5424 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004553/0.5351, allocations: 338.1 kB / 0.5428 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5351, allocations: 3.938 kB / 0.5428 GB, free: 32.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.5353, allocations: 134.3 kB / 0.5429 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.5355, allocations: 35.47 kB / 0.5429 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008741/0.5364, allocations: 0.604 MB / 0.5435 GB, free: 31.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.5368, allocations: 0.9027 MB / 0.5444 GB, free: 31.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.537, allocations: 82.69 kB / 0.5445 GB, free: 31.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.5371, allocations: 44.31 kB / 0.5445 GB, free: 31.1 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5371, allocations: 0 / 0.5445 GB, free: 31.1 MB / 378.7 MB Notification: Performance of Templates: time 0.007664/0.5448, allocations: 3.857 MB / 0.5483 GB, free: 30.81 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)