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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002559/0.002558, allocations: 181.1 kB / 7.457 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.162/1.162, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.0009657/0.0009657, allocations: 92.77 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.06364/0.06364, allocations: 13.57 MB / 344.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 0 / 404.2 MB, free: 61.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.0842, allocations: 53.71 MB / 457.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2522/0.3365, allocations: 76.61 MB / 0.522 GB, free: 6.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001454/0.3367, allocations: 48.67 kB / 0.522 GB, free: 6.316 MB / 346.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: time 0.01146/0.3481, allocations: 4.884 MB / 0.5268 GB, free: 2.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.3482, allocations: 19.59 kB / 0.5268 GB, free: 2.301 MB / 346.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.0006054/0.3488, allocations: 0.5658 MB / 0.5274 GB, free: 1.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.3488, allocations: 12.02 kB / 0.5274 GB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.3489, allocations: 43.53 kB / 0.5274 GB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.3493, allocations: 325.8 kB / 0.5277 GB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/0.3494, allocations: 46.7 kB / 0.5278 GB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.579e-05/0.3495, allocations: 24 kB / 0.5278 GB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004503/0.3499, allocations: 260.9 kB / 0.5281 GB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/0.3505, allocations: 429.9 kB / 0.5285 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3505, allocations: 7.938 kB / 0.5285 GB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.3506, allocations: 7.906 kB / 0.5285 GB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3506, allocations: 8 kB / 0.5285 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.3523, allocations: 1.791 MB / 0.5302 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.3526, allocations: 389.6 kB / 0.5306 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.219e-05/0.3527, allocations: 69.34 kB / 0.5307 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006007/0.3533, allocations: 0.7109 MB / 0.5314 GB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.3535, allocations: 161 kB / 0.5315 GB, free: 13.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.3535, allocations: 4 kB / 0.5315 GB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003114/0.3538, allocations: 146.9 kB / 0.5317 GB, free: 13.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.3539, allocations: 170.2 kB / 0.5318 GB, free: 13.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.3541, allocations: 227.4 kB / 0.532 GB, free: 13.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.3541, allocations: 29.7 kB / 0.5321 GB, free: 13.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3543, allocations: 198.4 kB / 0.5323 GB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.3543, allocations: 42.44 kB / 0.5323 GB, free: 12.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-06/0.3543, allocations: 0 / 0.5323 GB, free: 12.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3544, allocations: 341.3 kB / 0.5326 GB, free: 12.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-05/0.3545, allocations: 61.31 kB / 0.5327 GB, free: 12.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3547, allocations: 207.5 kB / 0.5329 GB, free: 12.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.3549, allocations: 89.91 kB / 0.533 GB, free: 12.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3549, allocations: 3.938 kB / 0.533 GB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004018/0.3553, allocations: 276.3 kB / 0.5332 GB, free: 11.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.3553, allocations: 6.969 kB / 0.5332 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.3553, allocations: 4 kB / 0.5332 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3554, allocations: 8 kB / 0.5333 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.772e-05/0.3555, allocations: 27.05 kB / 0.5333 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.3555, allocations: 11.94 kB / 0.5333 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.3556, allocations: 20.23 kB / 0.5333 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.3557, allocations: 19.62 kB / 0.5333 GB, free: 11.86 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 () * 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.0001311/0.3558, allocations: 174.1 kB / 0.5335 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.622e-05/0.3558, allocations: 23.72 kB / 0.5335 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002961/0.3561, allocations: 168.8 kB / 0.5337 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3562, allocations: 0 / 0.5337 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3562, allocations: 4 kB / 0.5337 GB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3562, allocations: 3.984 kB / 0.5337 GB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006116/0.3568, allocations: 0.5213 MB / 0.5342 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3568, allocations: 0 / 0.5342 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.816e-05/0.3568, allocations: 7.562 kB / 0.5342 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3568, allocations: 0 / 0.5342 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.3569, allocations: 4 kB / 0.5342 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3569, allocations: 4 kB / 0.5342 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3569, allocations: 0 / 0.5342 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002655/0.3571, allocations: 258.9 kB / 0.5345 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-05/0.3572, allocations: 111.3 kB / 0.5346 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.3573, allocations: 7.906 kB / 0.5346 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.3574, allocations: 8 kB / 0.5346 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.3575, allocations: 23.09 kB / 0.5346 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.3575, allocations: 10.98 kB / 0.5346 GB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.947e-05/0.3576, allocations: 135.6 kB / 0.5347 GB, free: 10.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003201/0.3579, allocations: 48 kB / 0.5348 GB, free: 10.46 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) * 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.0001523/0.3581, allocations: 111.3 kB / 0.5349 GB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.3584, allocations: 218.4 kB / 0.5351 GB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3584, allocations: 0 / 0.5351 GB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.3585, allocations: 115.4 kB / 0.5352 GB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001872/0.3587, allocations: 20.28 kB / 0.5352 GB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006089/0.3593, allocations: 351.6 kB / 0.5356 GB, free: 9.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.3597, allocations: 0.83 MB / 0.5364 GB, free: 8.883 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3597, allocations: 0 / 0.5364 GB, free: 8.883 MB / 362.7 MB Notification: Performance of Templates: time 0.005339/0.365, allocations: 2.306 MB / 0.5386 GB, free: 6.609 MB / 362.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)