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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00869/0.00869, allocations: 99.83 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 189.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.1019/0.1019, allocations: 13.54 MB / 304.1 MB, free: 1.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 55.91 kB / 421.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1684, allocations: 52.69 MB / 474.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.004206/0.1726, allocations: 2.133 MB / 476.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.1749, allocations: 0.9775 MB / 477.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.1753, allocations: 19.88 kB / 477.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.1771, allocations: 0.7926 MB / 478.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.1774, allocations: 47.47 kB / 478.3 MB, free: 5.625 MB / 350.1 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 NFTyping.typeClassSections: time 0.001245/0.1786, allocations: 331.2 kB / 478.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009515/0.1796, allocations: 0.6003 MB / 479.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.1809, allocations: 0.7143 MB / 479.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003527/0.1813, allocations: 223.2 kB / 480.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003297/0.1816, allocations: 222.9 kB / 480.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.1817, allocations: 48 kB / 480.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.1819, allocations: 63.98 kB / 480.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.1821, allocations: 139.5 kB / 480.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.1823, allocations: 242.7 kB / 480.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008392/0.1832, allocations: 0.6068 MB / 481.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1832, allocations: 0 / 481.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1832, allocations: 0 / 481.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.005e-05/0.1832, allocations: 0 / 481.4 MB, free: 2.449 MB / 350.1 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.001271/0.1845, allocations: 0.7748 MB / 482.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1846, allocations: 11.89 kB / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.1847, allocations: 60.56 kB / 482.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006976/0.1854, allocations: 399.4 kB / 482.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.718e-05/0.1855, allocations: 45.69 kB / 482.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.796e-05/0.1856, allocations: 56.38 kB / 482.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1867, allocations: 0.6161 MB / 483.4 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.1867, allocations: 7.938 kB / 483.4 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.857e-05/0.1868, allocations: 28 kB / 483.4 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1868, allocations: 12 kB / 483.4 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007725/0.1876, allocations: 407.6 kB / 483.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003318/0.1909, allocations: 2.579 MB / 486.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005845/0.1915, allocations: 473.2 kB / 486.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.1917, allocations: 97.62 kB / 486.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008963/0.1926, allocations: 0.843 MB / 487.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.1929, allocations: 131.5 kB / 487.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 1.994e-06/0.1929, allocations: 4 kB / 487.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0004859/0.1934, allocations: 261.6 kB / 488.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.1934, allocations: 63.39 kB / 488.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.1937, allocations: 318.3 kB / 488.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1938, allocations: 33.7 kB / 488.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.194, allocations: 265 kB / 488.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.194, allocations: 71.52 kB / 488.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.1942, allocations: 134.2 kB / 489 MB, free: 10.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1944, allocations: 350.7 kB / 489.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.1946, allocations: 89.08 kB / 489.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.1949, allocations: 279 kB / 489.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.1953, allocations: 367.3 kB / 490.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1953, allocations: 8 kB / 490.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006091/0.1959, allocations: 397.4 kB / 490.5 MB, free: 8.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.196, allocations: 8 kB / 490.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.196, allocations: 8 kB / 490.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.196, allocations: 8 kB / 490.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1961, allocations: 39.86 kB / 490.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1962, allocations: 15.92 kB / 490.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.1963, allocations: 43.67 kB / 490.6 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.656e-05/0.1964, allocations: 24 kB / 490.6 MB, free: 8.52 MB / 366.1 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,step4.oldActive,$PRE.step4.oldActive,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,greaterEqual1.y,timer2.entryTime,$PRE.timer2.entryTime,T4.enableFire,step4.outport_fire,step4.inport_fire,step4.newActive,$PRE.step4.newActive,greaterEqual.y,timer1.entryTime,$PRE.timer1.entryTime,T3.enableFire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,step3.active,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,step2.active,T1.enableFire,T1.condition,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,step4.inPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T4.condition,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000242/0.1966, allocations: 231.9 kB / 490.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.1967, allocations: 35.73 kB / 490.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003706/0.1971, allocations: 225.9 kB / 491.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1971, allocations: 4 kB / 491.1 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.1971, allocations: 4 kB / 491.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1971, allocations: 3.984 kB / 491.1 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009157/0.198, allocations: 0.7329 MB / 491.9 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.198, allocations: 0 / 491.9 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.402e-05/0.1981, allocations: 11.94 kB / 491.9 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1981, allocations: 0 / 491.9 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.1981, allocations: 11.98 kB / 491.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1981, allocations: 0 / 491.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1981, allocations: 0 / 491.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.1984, allocations: 308.1 kB / 492.2 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.586e-05/0.1986, allocations: 124.8 kB / 492.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.1986, allocations: 8 kB / 492.3 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.1987, allocations: 11.98 kB / 492.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1988, allocations: 19.97 kB / 492.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.1988, allocations: 8 kB / 492.4 MB, free: 6.691 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.199, allocations: 178 kB / 492.5 MB, free: 6.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.199, allocations: 0 / 492.5 MB, free: 6.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.1994, allocations: 111.5 kB / 492.6 MB, free: 6.406 MB / 366.1 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.active,step2.active,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,greaterEqual.y,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,timer2.entryTime,greaterEqual1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001829/0.1996, allocations: 117.4 kB / 492.8 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000418/0.2, allocations: 253.8 kB / 493 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.2, allocations: 4.438 kB / 493 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.2002, allocations: 103.8 kB / 493.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.2005, allocations: 32.55 kB / 493.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2016, allocations: 0.6612 MB / 493.8 MB, free: 5.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.202, allocations: 0.8302 MB / 494.6 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.2022, allocations: 55.23 kB / 494.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.539e-05/0.2022, allocations: 35.42 kB / 494.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2023, allocations: 0 / 494.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of Templates: time 0.00699/0.2093, allocations: 2.463 MB / 497.2 MB, free: 1.816 MB / 366.1 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)