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.008531/0.008531, allocations: 98.08 kB / 15.73 MB, free: 6.051 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.001699/0.001699, allocations: 192.5 kB / 16.67 MB, free: 5.973 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2313/0.2313, allocations: 13.53 MB / 304.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 63.91 kB / 421.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3413, allocations: 52.7 MB / 474.4 MB, free: 28.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003722/0.3451, allocations: 2.132 MB / 476.6 MB, free: 27.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.3469, allocations: 0.9753 MB / 477.6 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.3471, allocations: 15.12 kB / 477.6 MB, free: 26.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.3485, allocations: 0.7949 MB / 478.4 MB, free: 25.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.3486, allocations: 47.12 kB / 478.4 MB, free: 25.66 MB / 366.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.0009229/0.3495, allocations: 325.1 kB / 478.7 MB, free: 25.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000689/0.3502, allocations: 0.6095 MB / 479.3 MB, free: 25.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/0.3513, allocations: 0.7211 MB / 480.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.3515, allocations: 227.5 kB / 480.3 MB, free: 24.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.3518, allocations: 222.3 kB / 480.5 MB, free: 24.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.3519, allocations: 53.12 kB / 480.6 MB, free: 24.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.352, allocations: 68.58 kB / 480.6 MB, free: 24.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3521, allocations: 131 kB / 480.7 MB, free: 24.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.3523, allocations: 236.7 kB / 481 MB, free: 23.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007188/0.3531, allocations: 0.5973 MB / 481.6 MB, free: 23.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3531, allocations: 0 / 481.6 MB, free: 23.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3531, allocations: 0 / 481.6 MB, free: 23.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3531, allocations: 4.75 kB / 481.6 MB, free: 23.55 MB / 366.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.0009768/0.3541, allocations: 0.7668 MB / 482.3 MB, free: 22.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3541, allocations: 18.14 kB / 482.4 MB, free: 22.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.3543, allocations: 60.94 kB / 482.4 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.3548, allocations: 390.1 kB / 482.8 MB, free: 22.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.3549, allocations: 55 kB / 482.9 MB, free: 22.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.212e-05/0.355, allocations: 53.97 kB / 482.9 MB, free: 22.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008495/0.3558, allocations: 0.6203 MB / 483.5 MB, free: 22.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3559, allocations: 1.219 kB / 483.5 MB, free: 22.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.3559, allocations: 30.05 kB / 483.6 MB, free: 21.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.3559, allocations: 13.62 kB / 483.6 MB, free: 21.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006537/0.3566, allocations: 409.3 kB / 484 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.359, allocations: 2.566 MB / 486.5 MB, free: 19.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.3594, allocations: 465.5 kB / 487 MB, free: 19.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3596, allocations: 98.41 kB / 487.1 MB, free: 18.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006664/0.3602, allocations: 0.8429 MB / 487.9 MB, free: 18.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.3604, allocations: 136.9 kB / 488.1 MB, free: 18.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.3605, allocations: 0 / 488.1 MB, free: 18.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0004659/0.3609, allocations: 259 kB / 488.3 MB, free: 17.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.361, allocations: 63.72 kB / 488.4 MB, free: 17.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.3612, allocations: 317.6 kB / 488.7 MB, free: 17.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3613, allocations: 34.2 kB / 488.7 MB, free: 17.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.3614, allocations: 258.2 kB / 489 MB, free: 17.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.3615, allocations: 71.08 kB / 489 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.3616, allocations: 145.4 kB / 489.2 MB, free: 17.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.008e-05/0.3617, allocations: 337.6 kB / 489.5 MB, free: 16.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.3619, allocations: 88.8 kB / 489.6 MB, free: 16.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.3621, allocations: 274.3 kB / 489.9 MB, free: 16.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.3624, allocations: 367.3 kB / 490.2 MB, free: 16.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3624, allocations: 1.438 kB / 490.2 MB, free: 16.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000548/0.363, allocations: 404.3 kB / 490.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.363, allocations: 8.125 kB / 490.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.363, allocations: 13.83 kB / 490.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.3631, allocations: 9.25 kB / 490.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.3632, allocations: 42.55 kB / 490.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.3632, allocations: 12.17 kB / 490.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.3634, allocations: 41.94 kB / 490.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.3635, allocations: 27.72 kB / 490.8 MB, free: 15.91 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.0002016/0.3637, allocations: 225.2 kB / 491 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.3637, allocations: 37.06 kB / 491 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003472/0.3641, allocations: 229.5 kB / 491.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3641, allocations: 3.094 kB / 491.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3641, allocations: 5.094 kB / 491.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3641, allocations: 4 kB / 491.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007579/0.3649, allocations: 0.7282 MB / 492 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3649, allocations: 0 / 492 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.34e-05/0.3649, allocations: 6.969 kB / 492 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3649, allocations: 9.078 kB / 492 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.365, allocations: 5.156 kB / 492 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.365, allocations: 1.188 kB / 492 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.365, allocations: 1.062 kB / 492 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.3653, allocations: 306.2 kB / 492.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.3653, allocations: 116.2 kB / 492.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.3654, allocations: 6.625 kB / 492.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.3655, allocations: 10.45 kB / 492.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.715e-05/0.3656, allocations: 23.62 kB / 492.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3656, allocations: 9.5 kB / 492.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.3657, allocations: 174.5 kB / 492.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3657, allocations: 0 / 492.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.3661, allocations: 117.1 kB / 492.8 MB, free: 14.45 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.0001517/0.3663, allocations: 122.7 kB / 492.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.3667, allocations: 263.8 kB / 493.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3667, allocations: 0 / 493.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3668, allocations: 91.25 kB / 493.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.3671, allocations: 37.77 kB / 493.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000905/0.368, allocations: 0.644 MB / 493.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.3683, allocations: 0.835 MB / 494.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.3684, allocations: 59.34 kB / 494.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.838e-05/0.3685, allocations: 34.73 kB / 494.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3685, allocations: 1.406 kB / 494.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of Templates: time 0.005994/0.3745, allocations: 2.46 MB / 497.3 MB, free: 11.73 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)