Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 104.3 kB / 17.06 MB, free: 6.027 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.001242/0.001242, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 55.86 kB / 327.8 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1418, allocations: 46.61 MB / 374.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003609/0.1455, allocations: 1.687 MB / 376.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008413/0.1464, allocations: 263.2 kB / 376.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.1465, allocations: 8 kB / 376.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.1467, allocations: 27.67 kB / 376.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.429e-05/0.1468, allocations: 11.81 kB / 376.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.1473, allocations: 119.8 kB / 376.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.1477, allocations: 267.5 kB / 376.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004119/0.1481, allocations: 177.5 kB / 377 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.1483, allocations: 99.69 kB / 377.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.1485, allocations: 91.55 kB / 377.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.962e-05/0.1485, allocations: 24 kB / 377.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1487, allocations: 32 kB / 377.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.99e-05/0.1488, allocations: 59.81 kB / 377.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.1489, allocations: 107.4 kB / 377.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.1493, allocations: 247.1 kB / 377.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.1494, allocations: 3.938 kB / 377.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1494, allocations: 0 / 377.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.1494, allocations: 4 kB / 377.7 MB, free: 1.398 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001092/0.1505, allocations: 486.2 kB / 378.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.1506, allocations: 8.031 kB / 378.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.511e-05/0.1507, allocations: 24.75 kB / 378.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.1511, allocations: 232 kB / 378.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.1512, allocations: 28.88 kB / 378.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1512, allocations: 32.31 kB / 378.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005433/0.1518, allocations: 266.6 kB / 378.7 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1518, allocations: 192 / 378.7 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.1519, allocations: 19.92 kB / 378.7 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.1519, allocations: 4 kB / 378.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.1522, allocations: 169.5 kB / 378.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.311/0.4632, allocations: 0.9604 MB / 379.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.4636, allocations: 152.1 kB / 380 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.4637, allocations: 78.53 kB / 380.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.4638, allocations: 10.06 kB / 380.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.464, allocations: 113.9 kB / 380.2 MB, free: 13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 4.017e-06/0.464, allocations: 0 / 380.2 MB, free: 13 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005718/0.4646, allocations: 215.2 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.4647, allocations: 60.52 kB / 380.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4648, allocations: 150.4 kB / 380.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4649, allocations: 42.02 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.465, allocations: 142.1 kB / 380.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.685e-05/0.4651, allocations: 60.8 kB / 380.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.4652, allocations: 77.64 kB / 380.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.4653, allocations: 328.2 kB / 381.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.4655, allocations: 61.89 kB / 381.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.4656, allocations: 141.4 kB / 381.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.4659, allocations: 190.8 kB / 381.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4659, allocations: 8.859 kB / 381.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004696/0.4664, allocations: 250.7 kB / 381.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.4664, allocations: 6.125 kB / 381.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4665, allocations: 4.891 kB / 381.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.31e-05/0.4665, allocations: 4.438 kB / 381.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.4667, allocations: 34.47 kB / 381.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.4667, allocations: 9.422 kB / 381.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.4668, allocations: 25.8 kB / 382 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.4669, allocations: 17.86 kB / 382 MB, free: 11.73 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001546/0.467, allocations: 157.4 kB / 382.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.4671, allocations: 13.31 kB / 382.2 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004665/0.4675, allocations: 196.2 kB / 382.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4675, allocations: 7.328 kB / 382.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4676, allocations: 0.7188 kB / 382.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4676, allocations: 6.969 kB / 382.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.4684, allocations: 0.5864 MB / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4685, allocations: 0 / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.4685, allocations: 13.14 kB / 383 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.4685, allocations: 1.828 kB / 383 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.4686, allocations: 6.625 kB / 383 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.4686, allocations: 6.625 kB / 383 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4686, allocations: 0.6094 kB / 383 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003671/0.469, allocations: 272.5 kB / 383.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.463e-05/0.469, allocations: 89.75 kB / 383.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.4691, allocations: 7.469 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-05/0.4692, allocations: 14.77 kB / 383.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.567e-05/0.4693, allocations: 16.5 kB / 383.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.4693, allocations: 10.88 kB / 383.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.489e-05/0.4693, allocations: 95.75 kB / 383.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4693, allocations: 4 kB / 383.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003434/0.4697, allocations: 56 kB / 383.5 MB, free: 10.64 MB / 318.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: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002325/0.4699, allocations: 112 kB / 383.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.4704, allocations: 192.1 kB / 383.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4704, allocations: 0 / 383.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.4706, allocations: 79.78 kB / 383.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.471, allocations: 24.69 kB / 383.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008716/0.4718, allocations: 331.9 kB / 384.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.4723, allocations: 0.7404 MB / 385 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.855e-05/0.4724, allocations: 25.27 kB / 385 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.186e-05/0.4725, allocations: 22.55 kB / 385 MB, free: 9.512 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4725, allocations: 0 / 385 MB, free: 9.512 MB / 318.1 MB Notification: Performance of Templates: time 0.008236/0.4807, allocations: 1.932 MB / 387 MB, free: 9.348 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)