Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001106/0.001105, allocations: 169.5 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.338/1.338, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001553/0.001553, allocations: 99.52 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.363e-05/2.366e-05, allocations: 4 kB / 268.9 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06941/0.06945, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2684/0.3379, allocations: 65.48 MB / 373.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.3381, allocations: 58.97 kB / 373.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007318/0.3455, allocations: 2.785 MB / 375.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3455, allocations: 4 kB / 376 MB, free: 8.324 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.3455, allocations: 8.875 kB / 376 MB, free: 8.316 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005849/0.3461, allocations: 428.9 kB / 376.4 MB, free: 7.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3462, allocations: 8.031 kB / 376.4 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/0.3463, allocations: 23.8 kB / 376.4 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.3465, allocations: 214.1 kB / 376.6 MB, free: 7.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.3466, allocations: 23.11 kB / 376.6 MB, free: 7.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.3466, allocations: 26.61 kB / 376.7 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.347, allocations: 235.3 kB / 376.9 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3471, allocations: 0 / 376.9 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.3471, allocations: 14.81 kB / 376.9 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3471, allocations: 4 kB / 376.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.3474, allocations: 154.8 kB / 377.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009333/0.3483, allocations: 0.6782 MB / 377.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.3486, allocations: 169.6 kB / 377.9 MB, free: 6.535 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.3487, allocations: 77.34 kB / 378 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.3488, allocations: 11.62 kB / 378 MB, free: 6.473 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.349, allocations: 118.2 kB / 378.1 MB, free: 6.367 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.349, allocations: 4 kB / 378.1 MB, free: 6.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003427/0.3493, allocations: 158 kB / 378.3 MB, free: 6.234 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.3494, allocations: 55.41 kB / 378.3 MB, free: 6.168 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.3495, allocations: 141.8 kB / 378.5 MB, free: 6.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3495, allocations: 39.2 kB / 378.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.3496, allocations: 129.6 kB / 378.6 MB, free: 5.875 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.3497, allocations: 57.44 kB / 378.7 MB, free: 5.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.499e-05/0.3497, allocations: 10.75 kB / 378.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3498, allocations: 330.1 kB / 379 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3499, allocations: 57.22 kB / 379.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.3501, allocations: 124.9 kB / 379.2 MB, free: 5.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.3502, allocations: 63.7 kB / 379.3 MB, free: 5.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3502, allocations: 0 / 379.3 MB, free: 5.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000344/0.3506, allocations: 239.6 kB / 379.5 MB, free: 5.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3506, allocations: 7.938 kB / 379.5 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3506, allocations: 0 / 379.5 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3506, allocations: 4 kB / 379.5 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3508, allocations: 31.86 kB / 379.5 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.3508, allocations: 7.938 kB / 379.5 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.246e-05/0.3509, allocations: 19.73 kB / 379.6 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.351, allocations: 11.81 kB / 379.6 MB, free: 5.027 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 0.0001182/0.3511, allocations: 139.6 kB / 379.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.3511, allocations: 15.81 kB / 379.7 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003423/0.3515, allocations: 187.7 kB / 379.9 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3515, allocations: 0 / 379.9 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.3515, allocations: 7.984 kB / 379.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3515, allocations: 0 / 379.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007248/0.3522, allocations: 0.5549 MB / 380.5 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3522, allocations: 3.938 kB / 380.5 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.275e-05/0.3523, allocations: 19.92 kB / 380.5 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3523, allocations: 0 / 380.5 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.3524, allocations: 7.812 kB / 380.5 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3524, allocations: 0 / 380.5 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3524, allocations: 0 / 380.5 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.3527, allocations: 287.1 kB / 380.8 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.3528, allocations: 88.95 kB / 380.9 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.3529, allocations: 7.047 kB / 380.9 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.255e-05/0.353, allocations: 15.31 kB / 380.9 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/0.353, allocations: 19.28 kB / 380.9 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.3531, allocations: 15.23 kB / 380.9 MB, free: 3.754 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.703e-05/0.3531, allocations: 95.61 kB / 381 MB, free: 3.664 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3532, allocations: 0 / 381 MB, free: 3.664 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.3534, allocations: 48.12 kB / 381.1 MB, free: 3.625 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001773/0.3536, allocations: 110.1 kB / 381.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003164/0.354, allocations: 175.1 kB / 381.3 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.354, allocations: 0 / 381.3 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3541, allocations: 80.56 kB / 381.4 MB, free: 3.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.3543, allocations: 18.05 kB / 381.4 MB, free: 3.312 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004573/0.3548, allocations: 231 kB / 381.7 MB, free: 3.098 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3551, allocations: 0.7326 MB / 382.4 MB, free: 2.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.194e-05/0.3552, allocations: 30.02 kB / 382.4 MB, free: 2.312 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.651e-05/0.3553, allocations: 31.36 kB / 382.5 MB, free: 2.285 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.3553, allocations: 0 / 382.5 MB, free: 2.285 MB / 266.7 MB Notification: Performance of Templates: time 0.004737/0.36, allocations: 1.656 MB / 384.1 MB, free: 0.6484 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)