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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.0009769/0.000977, allocations: 169.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.226/1.226, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001582/0.001582, allocations: 107.5 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.705e-05, allocations: 4 kB / 268.8 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06599/0.06603, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2712/0.3373, allocations: 66.13 MB / 373.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.3375, allocations: 63.47 kB / 373.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007716/0.3453, allocations: 2.927 MB / 376.7 MB, free: 7.465 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3453, allocations: 4 kB / 376.7 MB, free: 7.461 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.3454, allocations: 4.875 kB / 376.7 MB, free: 7.457 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0005255/0.3459, allocations: 426.7 kB / 377.2 MB, free: 7.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3459, allocations: 12.03 kB / 377.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.346, allocations: 27.7 kB / 377.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3463, allocations: 217.8 kB / 377.4 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.3464, allocations: 19.06 kB / 377.4 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.3465, allocations: 37.05 kB / 377.5 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004198/0.3469, allocations: 254.3 kB / 377.7 MB, free: 6.488 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3469, allocations: 0 / 377.7 MB, free: 6.488 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.3469, allocations: 19.38 kB / 377.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.347, allocations: 4 kB / 377.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/0.3473, allocations: 165.3 kB / 377.9 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.3485, allocations: 0.9404 MB / 378.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.3488, allocations: 159.9 kB / 379 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3489, allocations: 72.88 kB / 379.1 MB, free: 5.301 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3489, allocations: 192 / 379.1 MB, free: 5.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.3491, allocations: 121 kB / 379.2 MB, free: 5.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.3491, allocations: 0 / 379.2 MB, free: 5.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003061/0.3494, allocations: 156.8 kB / 379.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.3495, allocations: 59.41 kB / 379.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.3496, allocations: 148.4 kB / 379.5 MB, free: 4.859 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.3497, allocations: 36.64 kB / 379.6 MB, free: 4.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.3498, allocations: 138.2 kB / 379.7 MB, free: 4.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.3498, allocations: 57.81 kB / 379.8 MB, free: 4.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.3498, allocations: 7.5 kB / 379.8 MB, free: 4.645 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3499, allocations: 325.8 kB / 380.1 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.35, allocations: 60.78 kB / 380.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.3502, allocations: 140.3 kB / 380.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.3503, allocations: 69.77 kB / 380.4 MB, free: 4.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3504, allocations: 0 / 380.4 MB, free: 4.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003584/0.3507, allocations: 242.2 kB / 380.6 MB, free: 3.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3507, allocations: 8.031 kB / 380.6 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3508, allocations: 4 kB / 380.6 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3508, allocations: 4 kB / 380.6 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3509, allocations: 31.92 kB / 380.6 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.351, allocations: 11.94 kB / 380.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.846e-05/0.3511, allocations: 23.02 kB / 380.7 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/0.3511, allocations: 15.56 kB / 380.7 MB, free: 3.809 MB / 266.7 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.871e-05/0.3512, allocations: 123.4 kB / 380.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.3512, allocations: 23.09 kB / 380.8 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/0.3516, allocations: 181.5 kB / 381 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3516, allocations: 3.984 kB / 381 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3516, allocations: 3.984 kB / 381 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3516, allocations: 7.953 kB / 381 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007174/0.3523, allocations: 0.577 MB / 381.6 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3523, allocations: 4 kB / 381.6 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.468e-05/0.3524, allocations: 19.92 kB / 381.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3524, allocations: 0 / 381.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.3525, allocations: 11.64 kB / 381.6 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3525, allocations: 4 kB / 381.6 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3525, allocations: 0 / 381.6 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3528, allocations: 268.4 kB / 381.9 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.38e-05/0.3528, allocations: 85.02 kB / 382 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.3529, allocations: 7.25 kB / 382 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-05/0.353, allocations: 15.25 kB / 382 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.271e-05/0.3531, allocations: 22.78 kB / 382 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3531, allocations: 6.438 kB / 382 MB, free: 2.539 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.191e-05/0.3531, allocations: 99.48 kB / 382.1 MB, free: 2.449 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3531, allocations: 0 / 382.1 MB, free: 2.449 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.3534, allocations: 37.94 kB / 382.2 MB, free: 2.418 MB / 266.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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 (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.0001846/0.3536, allocations: 120.3 kB / 382.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003192/0.354, allocations: 178.2 kB / 382.5 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.354, allocations: 0 / 382.5 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.3541, allocations: 86.09 kB / 382.5 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.3543, allocations: 15.38 kB / 382.6 MB, free: 2.086 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004579/0.3548, allocations: 231.9 kB / 382.8 MB, free: 1.875 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.3552, allocations: 0.748 MB / 383.5 MB, free: 1.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.983e-05/0.3553, allocations: 30 kB / 383.6 MB, free: 1.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.3553, allocations: 23.44 kB / 383.6 MB, free: 1.047 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3554, allocations: 0 / 383.6 MB, free: 1.047 MB / 266.7 MB Notification: Performance of Templates: time 0.005048/0.3604, allocations: 1.643 MB / 385.2 MB, free: 15.43 MB / 282.7 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)