Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008344/0.008344, allocations: 169.5 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.566/1.566, allocations: 223.2 MB / 239 MB, free: 1.785 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.001241/0.00124, allocations: 106.8 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.09247/0.09247, allocations: 13.58 MB / 354.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003398, allocations: 8 kB / 419.1 MB, free: 87.49 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 53.72 MB / 472.8 MB, free: 34.56 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3998/0.5157, allocations: 77.13 MB / 0.5371 GB, free: 16.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.516, allocations: 47.25 kB / 0.5371 GB, free: 16.34 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.01354/0.5295, allocations: 5.289 MB / 0.5423 GB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.5296, allocations: 1 kB / 0.5423 GB, free: 15.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.5296, allocations: 12.69 kB / 0.5423 GB, free: 15.65 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009525/0.5306, allocations: 0.5845 MB / 0.5428 GB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.5306, allocations: 8.094 kB / 0.5429 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.5308, allocations: 55.69 kB / 0.5429 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.5313, allocations: 317.4 kB / 0.5432 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.481e-05/0.5314, allocations: 63.05 kB / 0.5433 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.08e-05/0.5314, allocations: 43.69 kB / 0.5433 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008068/0.5322, allocations: 488.5 kB / 0.5438 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.5323, allocations: 0 / 0.5438 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.753e-05/0.5323, allocations: 21.11 kB / 0.5438 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.5323, allocations: 13.75 kB / 0.5438 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005686/0.5329, allocations: 292 kB / 0.5441 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.5352, allocations: 1.894 MB / 0.5459 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.5356, allocations: 412.1 kB / 0.5463 GB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007674/0.5364, allocations: 0.7173 MB / 0.547 GB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.5367, allocations: 170.7 kB / 0.5472 GB, free: 12.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.555e-06/0.5367, allocations: 0 / 0.5472 GB, free: 12.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005711/0.5373, allocations: 345.8 kB / 0.5475 GB, free: 12.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.5374, allocations: 166.1 kB / 0.5477 GB, free: 12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.5377, allocations: 238.2 kB / 0.5479 GB, free: 11.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.5377, allocations: 34.36 kB / 0.5479 GB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.5379, allocations: 197.8 kB / 0.5481 GB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.943e-05/0.5379, allocations: 52.59 kB / 0.5482 GB, free: 11.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.538, allocations: 8.625 kB / 0.5482 GB, free: 11.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.246e-05/0.5381, allocations: 339.1 kB / 0.5485 GB, free: 11.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.5382, allocations: 67.58 kB / 0.5486 GB, free: 11.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.5384, allocations: 220.9 kB / 0.5488 GB, free: 11.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.5386, allocations: 122.3 kB / 0.5489 GB, free: 11.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5386, allocations: 5.547 kB / 0.5489 GB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004612/0.539, allocations: 354.8 kB / 0.5492 GB, free: 11.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.5391, allocations: 38.91 kB / 0.5493 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.5391, allocations: 9.344 kB / 0.5493 GB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.5391, allocations: 8.047 kB / 0.5493 GB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.556e-05/0.5392, allocations: 29.73 kB / 0.5493 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.5393, allocations: 9.844 kB / 0.5493 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.5394, allocations: 19.31 kB / 0.5494 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.5395, allocations: 22.47 kB / 0.5494 GB, free: 11 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0002215/0.5397, allocations: 244.2 kB / 0.5496 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.5397, allocations: 20.39 kB / 0.5496 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003771/0.5401, allocations: 242.3 kB / 0.5499 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.5401, allocations: 2.141 kB / 0.5499 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5401, allocations: 1.344 kB / 0.5499 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5401, allocations: 0.6562 kB / 0.5499 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008487/0.541, allocations: 0.6714 MB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.541, allocations: 0.75 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.852e-05/0.541, allocations: 3.625 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.541, allocations: 0.75 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.5411, allocations: 11.45 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5411, allocations: 1.438 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5411, allocations: 0.75 kB / 0.5505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.5414, allocations: 331.6 kB / 0.5509 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.5415, allocations: 110.1 kB / 0.551 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/0.5416, allocations: 8.328 kB / 0.551 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.5417, allocations: 13.17 kB / 0.551 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.5418, allocations: 20.16 kB / 0.551 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.5418, allocations: 7.5 kB / 0.551 GB, free: 10.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.5419, allocations: 141.7 kB / 0.5511 GB, free: 10.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5419, allocations: 1.969 kB / 0.5511 GB, free: 10.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003386/0.5423, allocations: 56.34 kB / 0.5512 GB, free: 10.02 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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,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,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0001694/0.5424, allocations: 127.2 kB / 0.5513 GB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004003/0.5428, allocations: 261.1 kB / 0.5516 GB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5429, allocations: 1.281 kB / 0.5516 GB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.543, allocations: 147.4 kB / 0.5517 GB, free: 9.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.5432, allocations: 34 kB / 0.5517 GB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008415/0.5441, allocations: 0.5756 MB / 0.5523 GB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/0.5448, allocations: 0.8037 MB / 0.5531 GB, free: 24.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.545, allocations: 34.16 kB / 0.5531 GB, free: 24.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.634e-05/0.545, allocations: 26.95 kB / 0.5531 GB, free: 24.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.545, allocations: 0 / 0.5531 GB, free: 24.7 MB / 378.7 MB Notification: Performance of Templates: time 0.005911/0.5509, allocations: 1.927 MB / 0.555 GB, free: 24.52 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe 2>&1)