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.01016/0.01016, allocations: 102.1 kB / 15.73 MB, free: 6.059 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.002556/0.002556, allocations: 198 kB / 16.68 MB, free: 5.977 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.09959/0.09959, allocations: 13.55 MB / 304.1 MB, free: 1.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 63.89 kB / 421.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1594, allocations: 52.69 MB / 474.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003938/0.1634, allocations: 2.137 MB / 476.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.1655, allocations: 0.9814 MB / 477.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003769/0.1659, allocations: 19.88 kB / 477.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.1676, allocations: 0.7925 MB / 478.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.1678, allocations: 43.47 kB / 478.3 MB, free: 5.609 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.001119/0.169, allocations: 335.2 kB / 478.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008845/0.1699, allocations: 0.5925 MB / 479.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.171, allocations: 0.726 MB / 479.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003826/0.1714, allocations: 227.2 kB / 480.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.1718, allocations: 222.9 kB / 480.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.1719, allocations: 48 kB / 480.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.1721, allocations: 60 kB / 480.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.1722, allocations: 139.5 kB / 480.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.1725, allocations: 234.7 kB / 480.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.1733, allocations: 0.6033 MB / 481.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1733, allocations: 4 kB / 481.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1733, allocations: 4 kB / 481.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.1733, allocations: 0 / 481.4 MB, free: 2.43 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.001301/0.1746, allocations: 0.7638 MB / 482.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1747, allocations: 11.89 kB / 482.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.1748, allocations: 56.28 kB / 482.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006993/0.1755, allocations: 399.2 kB / 482.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.1756, allocations: 45.69 kB / 482.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.079e-05/0.1757, allocations: 56.38 kB / 482.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.1769, allocations: 0.6239 MB / 483.4 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1769, allocations: 0 / 483.4 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.177, allocations: 20 kB / 483.4 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.177, allocations: 16 kB / 483.4 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007957/0.1778, allocations: 411.6 kB / 483.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.1813, allocations: 2.563 MB / 486.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005495/0.1819, allocations: 477.2 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.1821, allocations: 93.67 kB / 486.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/0.1831, allocations: 0.8468 MB / 487.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.1834, allocations: 139.4 kB / 487.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.365e-06/0.1834, allocations: 0 / 487.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0005346/0.1839, allocations: 257.6 kB / 488.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.184, allocations: 59.39 kB / 488.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.1844, allocations: 322.1 kB / 488.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.1844, allocations: 37.7 kB / 488.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.1847, allocations: 256.3 kB / 488.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.311e-05/0.1848, allocations: 67.19 kB / 488.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.185, allocations: 138.1 kB / 489 MB, free: 10.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1852, allocations: 342.8 kB / 489.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.1854, allocations: 93 kB / 489.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.1857, allocations: 279.1 kB / 489.7 MB, free: 9.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.1861, allocations: 363.3 kB / 490.1 MB, free: 9.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.1862, allocations: 0 / 490.1 MB, free: 9.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006301/0.1868, allocations: 404.6 kB / 490.5 MB, free: 8.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1868, allocations: 8.812 kB / 490.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.1868, allocations: 8 kB / 490.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.1869, allocations: 12 kB / 490.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.187, allocations: 39.84 kB / 490.5 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.1871, allocations: 11.94 kB / 490.5 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1873, allocations: 39.67 kB / 490.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.1874, allocations: 24 kB / 490.6 MB, free: 8.543 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.0003349/0.1877, allocations: 235.7 kB / 490.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.484e-05/0.1877, allocations: 31.56 kB / 490.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003892/0.1881, allocations: 233.7 kB / 491.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1882, allocations: 4 kB / 491.1 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1882, allocations: 4 kB / 491.1 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1882, allocations: 0 / 491.1 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009825/0.1892, allocations: 0.725 MB / 491.8 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1892, allocations: 0 / 491.8 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.987e-05/0.1892, allocations: 11.98 kB / 491.8 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1893, allocations: 0 / 491.8 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1893, allocations: 8 kB / 491.8 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.1893, allocations: 4 kB / 491.9 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1893, allocations: 0 / 491.9 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003635/0.1897, allocations: 308 kB / 492.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.1898, allocations: 120.6 kB / 492.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.1898, allocations: 8 kB / 492.3 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.497e-05/0.19, allocations: 4 kB / 492.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/0.19, allocations: 27.97 kB / 492.3 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1901, allocations: 15.98 kB / 492.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.1903, allocations: 170 kB / 492.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1903, allocations: 0 / 492.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000493/0.1908, allocations: 107.4 kB / 492.6 MB, free: 6.441 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.0002266/0.191, allocations: 125.3 kB / 492.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.1915, allocations: 256.6 kB / 493 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1915, allocations: 0 / 493 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.1916, allocations: 97.53 kB / 493.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.192, allocations: 43.33 kB / 493.1 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.1934, allocations: 0.6505 MB / 493.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.1939, allocations: 0.8341 MB / 494.6 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.1941, allocations: 51.25 kB / 494.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.919e-05/0.1942, allocations: 31.44 kB / 494.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of SimCode: time 2.194e-06/0.1942, allocations: 0 / 494.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of Templates: time 0.007995/0.2022, allocations: 2.544 MB / 497.2 MB, free: 1.777 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)