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.0009525/0.000953, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.001416/0.001416, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.553/1.553, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.3103/0.3103, allocations: 13.56 MB / 305 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003261, allocations: 8.281 kB / 369.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1273, allocations: 53.7 MB / 423.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.1996/0.327, allocations: 1.793 MB / 425 MB, free: 42.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.3287, allocations: 0.9489 MB / 425.9 MB, free: 41.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.3289, allocations: 18.97 kB / 425.9 MB, free: 41.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.3292, allocations: 76.27 kB / 426 MB, free: 41.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.3293, allocations: 28.88 kB / 426 MB, free: 41.9 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.0007422/0.33, allocations: 286.2 kB / 426.3 MB, free: 41.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004616/0.3305, allocations: 0.5626 MB / 426.9 MB, free: 41.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.3316, allocations: 1.007 MB / 427.9 MB, free: 41.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.3317, allocations: 170.4 kB / 428 MB, free: 41.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.3319, allocations: 166.5 kB / 428.2 MB, free: 41.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.538e-05/0.3319, allocations: 20.75 kB / 428.2 MB, free: 41.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.781e-05/0.332, allocations: 44.23 kB / 428.3 MB, free: 41.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.633e-05/0.3321, allocations: 94.23 kB / 428.4 MB, free: 41.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.3322, allocations: 221.5 kB / 428.6 MB, free: 41.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.3326, allocations: 483.2 kB / 429.1 MB, free: 41.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3326, allocations: 0 / 429.1 MB, free: 41.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3326, allocations: 2.781 kB / 429.1 MB, free: 41.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3326, allocations: 0 / 429.1 MB, free: 41.24 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.0008117/0.3335, allocations: 0.6421 MB / 429.7 MB, free: 40.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3335, allocations: 12.44 kB / 429.7 MB, free: 40.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.655e-05/0.3336, allocations: 60.72 kB / 429.8 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.334, allocations: 388.3 kB / 430.1 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.3341, allocations: 43.5 kB / 430.2 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.3342, allocations: 60.09 kB / 430.2 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008893/0.3351, allocations: 0.6134 MB / 430.9 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3351, allocations: 3.031 kB / 430.9 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/0.3351, allocations: 24.3 kB / 430.9 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.3351, allocations: 14.12 kB / 430.9 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005869/0.3357, allocations: 408.4 kB / 431.3 MB, free: 40.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.3378, allocations: 2.593 MB / 433.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.3382, allocations: 465.9 kB / 434.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.3383, allocations: 100.7 kB / 434.4 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005766/0.3389, allocations: 0.8526 MB / 435.3 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.3391, allocations: 129.9 kB / 435.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.773e-06/0.3391, allocations: 0 / 435.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0003871/0.3395, allocations: 266.7 kB / 435.7 MB, free: 37.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.3396, allocations: 58.52 kB / 435.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.3398, allocations: 321.6 kB / 436.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.3398, allocations: 42.05 kB / 436.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.34, allocations: 256.6 kB / 436.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.304e-05/0.3401, allocations: 64.14 kB / 436.4 MB, free: 36.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.112e-05/0.3402, allocations: 103.5 kB / 436.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.3402, allocations: 339.6 kB / 436.8 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.3404, allocations: 84.91 kB / 436.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3405, allocations: 279.3 kB / 437.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.3409, allocations: 359.3 kB / 437.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3409, allocations: 3.188 kB / 437.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005005/0.3414, allocations: 404.1 kB / 438 MB, free: 36.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3414, allocations: 8.844 kB / 438 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.3414, allocations: 8.062 kB / 438 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3414, allocations: 9.594 kB / 438 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3416, allocations: 42.16 kB / 438 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.3416, allocations: 13.59 kB / 438 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3418, allocations: 40.06 kB / 438.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.3418, allocations: 24.03 kB / 438.1 MB, free: 36.04 MB / 350.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.000203/0.342, allocations: 223.3 kB / 438.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.342, allocations: 38.84 kB / 438.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003622/0.3424, allocations: 225.2 kB / 438.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3424, allocations: 3.281 kB / 438.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3424, allocations: 3.328 kB / 438.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3425, allocations: 0 / 438.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000761/0.3432, allocations: 0.733 MB / 439.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3432, allocations: 3.938 kB / 439.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/0.3433, allocations: 13.66 kB / 439.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3433, allocations: 4 kB / 439.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.3433, allocations: 7.25 kB / 439.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.3433, allocations: 0 / 439.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3433, allocations: 3.281 kB / 439.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002671/0.3436, allocations: 314.2 kB / 439.6 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-05/0.3437, allocations: 120.2 kB / 439.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.3437, allocations: 4 kB / 439.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.052e-05/0.3438, allocations: 18.34 kB / 439.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.3439, allocations: 19.98 kB / 439.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.3439, allocations: 13.72 kB / 439.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.3441, allocations: 177.3 kB / 440 MB, free: 34.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3441, allocations: 0 / 440 MB, free: 34.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.3445, allocations: 106.4 kB / 440.1 MB, free: 34.78 MB / 350.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.0001647/0.3446, allocations: 124.2 kB / 440.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.345, allocations: 243.3 kB / 440.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.345, allocations: 1.625 kB / 440.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.3451, allocations: 94.33 kB / 440.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3455, allocations: 36.47 kB / 440.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.3465, allocations: 0.8029 MB / 441.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.3468, allocations: 0.8401 MB / 442.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.3469, allocations: 62.02 kB / 442.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.725e-05/0.347, allocations: 26.59 kB / 442.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.347, allocations: 0 / 442.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of Templates: time 0.005565/0.3525, allocations: 2.249 MB / 444.6 MB, free: 33.1 MB / 350.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: