Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008293/0.008294, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001651/0.001652, allocations: 195.2 kB / 16.68 MB, free: 5.52 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.604/1.604, allocations: 205.1 MB / 222.5 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.001438/0.001438, allocations: 51.94 kB / 326.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1279, allocations: 46.62 MB / 373.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002969/0.1309, allocations: 1.695 MB / 374.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006949/0.1316, allocations: 251.3 kB / 375.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1317, allocations: 7.938 kB / 375.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.1319, allocations: 27.67 kB / 375.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.1319, allocations: 19.8 kB / 375.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.1324, allocations: 115.8 kB / 375.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003164/0.1327, allocations: 267.5 kB / 375.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.133, allocations: 189.4 kB / 375.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.1331, allocations: 83.77 kB / 375.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.1332, allocations: 103.5 kB / 375.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.1333, allocations: 24 kB / 375.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.1334, allocations: 32 kB / 375.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.1334, allocations: 55.83 kB / 376 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1336, allocations: 103.5 kB / 376.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.1339, allocations: 247.1 kB / 376.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1339, allocations: 0 / 376.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.1339, allocations: 7.984 kB / 376.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1339, allocations: 0 / 376.3 MB, free: 1.395 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.0007173/0.1346, allocations: 490.2 kB / 376.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.1347, allocations: 8.031 kB / 376.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.1347, allocations: 20.75 kB / 376.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.1351, allocations: 236 kB / 377.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.1351, allocations: 24.92 kB / 377.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.1352, allocations: 28.38 kB / 377.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.1356, allocations: 278.5 kB / 377.4 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1357, allocations: 192 / 377.4 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.1357, allocations: 15.94 kB / 377.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1357, allocations: 7.984 kB / 377.4 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.136, allocations: 161.6 kB / 377.6 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3059/0.4419, allocations: 0.9548 MB / 378.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.4423, allocations: 154.8 kB / 378.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.4424, allocations: 78.5 kB / 378.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.4424, allocations: 10.59 kB / 378.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.4426, allocations: 123.8 kB / 378.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.705e-06/0.4427, allocations: 0 / 378.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004805/0.4431, allocations: 209.2 kB / 379.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.4432, allocations: 60.66 kB / 379.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.4433, allocations: 148.4 kB / 379.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.4434, allocations: 38.19 kB / 379.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/0.4434, allocations: 140.9 kB / 379.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.4435, allocations: 59.47 kB / 379.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.4436, allocations: 80.83 kB / 379.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.4437, allocations: 331.4 kB / 379.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4438, allocations: 63.33 kB / 380 MB, free: 12.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.444, allocations: 142.3 kB / 380.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.4442, allocations: 190 kB / 380.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4443, allocations: 3.938 kB / 380.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004667/0.4447, allocations: 249 kB / 380.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.4448, allocations: 6.562 kB / 380.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.4448, allocations: 5.547 kB / 380.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.4448, allocations: 4.344 kB / 380.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.445, allocations: 38.64 kB / 380.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.445, allocations: 5.984 kB / 380.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.4452, allocations: 25.44 kB / 380.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.4452, allocations: 16 kB / 380.7 MB, free: 11.71 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.0001461/0.4454, allocations: 162.5 kB / 380.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.731e-05/0.4454, allocations: 15.44 kB / 380.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003917/0.4458, allocations: 195.8 kB / 381 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.4458, allocations: 3.328 kB / 381 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4458, allocations: 0.5 kB / 381 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.4458, allocations: 1.312 kB / 381 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.4466, allocations: 0.5932 MB / 381.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4467, allocations: 0.5625 kB / 381.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.4467, allocations: 14.83 kB / 381.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.4467, allocations: 1.375 kB / 381.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.4468, allocations: 7.172 kB / 381.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4468, allocations: 5.734 kB / 381.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4468, allocations: 0 / 381.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.4471, allocations: 269.9 kB / 381.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.4471, allocations: 98.45 kB / 382 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.4472, allocations: 5.344 kB / 382 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.076e-05/0.4473, allocations: 12.97 kB / 382 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.4474, allocations: 19.75 kB / 382.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.4474, allocations: 9.875 kB / 382.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.575e-05/0.4474, allocations: 97.42 kB / 382.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4475, allocations: 0 / 382.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.4478, allocations: 50.84 kB / 382.2 MB, free: 10.61 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.0001643/0.448, allocations: 119.6 kB / 382.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.4483, allocations: 189 kB / 382.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4483, allocations: 0 / 382.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.4485, allocations: 80.53 kB / 382.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.4488, allocations: 21.03 kB / 382.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00065/0.4495, allocations: 331.9 kB / 382.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.4498, allocations: 0.7388 MB / 383.7 MB, free: 9.496 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.611e-05/0.4499, allocations: 31.41 kB / 383.7 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.45, allocations: 21.95 kB / 383.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.45, allocations: 0 / 383.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of Templates: time 0.008316/0.4583, allocations: 1.882 MB / 385.6 MB, free: 9.332 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)