Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00749/0.00749, allocations: 171.8 kB / 15.11 MB, free: 5.973 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.445/1.445, allocations: 223.2 MB / 239 MB, free: 1.773 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.0009084/0.0009085, allocations: 97.62 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.09932/0.09932, allocations: 13.59 MB / 354.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 8.516 kB / 419.1 MB, free: 87.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 53.73 MB / 472.8 MB, free: 34.53 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3895/0.5119, allocations: 77.44 MB / 0.5374 GB, free: 16.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001604/0.5121, allocations: 46.66 kB / 0.5374 GB, free: 16.36 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.01746/0.5296, allocations: 6.884 MB / 0.5441 GB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5296, allocations: 0 / 0.5441 GB, free: 15.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.5297, allocations: 16.77 kB / 0.5441 GB, free: 15.57 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001059/0.5308, allocations: 0.6449 MB / 0.5448 GB, free: 15.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.5308, allocations: 8.906 kB / 0.5448 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.531, allocations: 66.39 kB / 0.5448 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006668/0.5317, allocations: 369.7 kB / 0.5452 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.578e-05/0.5318, allocations: 44.25 kB / 0.5452 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.5319, allocations: 61.17 kB / 0.5453 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.5331, allocations: 0.6478 MB / 0.5459 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.5331, allocations: 1.719 kB / 0.5459 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.5332, allocations: 26.31 kB / 0.546 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.5332, allocations: 18.73 kB / 0.546 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.5341, allocations: 408 kB / 0.5464 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/0.5372, allocations: 2.534 MB / 0.5488 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.5377, allocations: 469.6 kB / 0.5493 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000859/0.5386, allocations: 0.8484 MB / 0.5501 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002598/0.5389, allocations: 123.4 kB / 0.5502 GB, free: 11.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 4.048e-06/0.5389, allocations: 1.562 kB / 0.5502 GB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005509/0.5394, allocations: 262.4 kB / 0.5505 GB, free: 11.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.5395, allocations: 60.58 kB / 0.5505 GB, free: 11.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.5398, allocations: 288.3 kB / 0.5508 GB, free: 11.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.5399, allocations: 43.05 kB / 0.5509 GB, free: 11.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.5401, allocations: 247.6 kB / 0.5511 GB, free: 11.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.524e-05/0.5401, allocations: 72.81 kB / 0.5512 GB, free: 11.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.512e-05/0.5402, allocations: 9.312 kB / 0.5512 GB, free: 11.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.5403, allocations: 343.1 kB / 0.5515 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.5404, allocations: 86.92 kB / 0.5516 GB, free: 11.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.5407, allocations: 270.9 kB / 0.5518 GB, free: 10.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.5409, allocations: 114.1 kB / 0.5519 GB, free: 10.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5409, allocations: 9.625 kB / 0.552 GB, free: 10.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005952/0.5415, allocations: 404.5 kB / 0.5523 GB, free: 10.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.5415, allocations: 7.344 kB / 0.5523 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.5416, allocations: 9.938 kB / 0.5524 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.5416, allocations: 10.12 kB / 0.5524 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.5418, allocations: 40.27 kB / 0.5524 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.076e-05/0.5418, allocations: 13.88 kB / 0.5524 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.542, allocations: 23.61 kB / 0.5524 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.542, allocations: 23.58 kB / 0.5525 GB, free: 10.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002507/0.5423, allocations: 225.8 kB / 0.5527 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.5423, allocations: 33.23 kB / 0.5527 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003982/0.5427, allocations: 230.8 kB / 0.5529 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.5428, allocations: 3.516 kB / 0.5529 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.5428, allocations: 1.438 kB / 0.5529 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.5428, allocations: 7.422 kB / 0.5529 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.5436, allocations: 0.7231 MB / 0.5536 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.5436, allocations: 0 / 0.5536 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-05/0.5437, allocations: 10.81 kB / 0.5537 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5437, allocations: 1.375 kB / 0.5537 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.5437, allocations: 7.938 kB / 0.5537 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.5437, allocations: 1.375 kB / 0.5537 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.5437, allocations: 0 / 0.5537 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.544, allocations: 319 kB / 0.554 GB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.92e-05/0.5441, allocations: 111.5 kB / 0.5541 GB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.5442, allocations: 6.375 kB / 0.5541 GB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.435e-05/0.5443, allocations: 14.67 kB / 0.5541 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.601e-05/0.5444, allocations: 25.47 kB / 0.5541 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.5444, allocations: 5.5 kB / 0.5541 GB, free: 9.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001318/0.5445, allocations: 174.9 kB / 0.5543 GB, free: 9.777 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5445, allocations: 0 / 0.5543 GB, free: 9.777 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003908/0.5449, allocations: 73.44 kB / 0.5544 GB, free: 9.773 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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000163/0.5451, allocations: 116.8 kB / 0.5545 GB, free: 9.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004152/0.5455, allocations: 251.1 kB / 0.5547 GB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5455, allocations: 0 / 0.5547 GB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.5457, allocations: 89.92 kB / 0.5548 GB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.5459, allocations: 41.44 kB / 0.5548 GB, free: 9.633 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.5469, allocations: 0.7478 MB / 0.5556 GB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006831/0.5476, allocations: 0.8519 MB / 0.5564 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.5478, allocations: 50.92 kB / 0.5565 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.5479, allocations: 30.78 kB / 0.5565 GB, free: 24.47 MB / 378.7 MB Notification: Performance of SimCode: time 6.12e-07/0.5479, allocations: 0 / 0.5565 GB, free: 24.47 MB / 378.7 MB Notification: Performance of Templates: time 0.006293/0.5542, allocations: 2.187 MB / 0.5586 GB, free: 24.27 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe 2>&1)