Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001155/0.001155, allocations: 170.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.372/1.372, 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.001567/0.001567, allocations: 103.5 kB / 223.2 MB, free: 4.055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.186e-05, allocations: 7.984 kB / 268.8 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07511/0.07515, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2928/0.368, allocations: 66.11 MB / 373.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.3683, allocations: 62.53 kB / 373.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007879/0.3762, allocations: 2.942 MB / 376.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3762, allocations: 0 / 376.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.3763, allocations: 4.875 kB / 376.7 MB, free: 7.531 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.0005519/0.3768, allocations: 444 kB / 377.2 MB, free: 7.066 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3769, allocations: 12.03 kB / 377.2 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.3769, allocations: 23.72 kB / 377.2 MB, free: 7.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3772, allocations: 224.4 kB / 377.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.3773, allocations: 25.69 kB / 377.5 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.3773, allocations: 22.75 kB / 377.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00046/0.3778, allocations: 266 kB / 377.7 MB, free: 6.543 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3778, allocations: 4 kB / 377.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.3778, allocations: 6.938 kB / 377.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3778, allocations: 11.94 kB / 377.8 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.3781, allocations: 165.3 kB / 377.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.3792, allocations: 0.9418 MB / 378.9 MB, free: 5.527 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.3795, allocations: 154.3 kB / 379 MB, free: 5.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.3796, allocations: 81.27 kB / 379.1 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.3797, allocations: 4.125 kB / 379.1 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.3798, allocations: 112.2 kB / 379.2 MB, free: 5.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.3798, allocations: 0 / 379.2 MB, free: 5.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000309/0.3802, allocations: 165.9 kB / 379.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.3802, allocations: 58.78 kB / 379.4 MB, free: 5.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.3804, allocations: 138.5 kB / 379.6 MB, free: 4.918 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.3804, allocations: 35.58 kB / 379.6 MB, free: 4.883 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3805, allocations: 149.3 kB / 379.7 MB, free: 4.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.3806, allocations: 52.09 kB / 379.8 MB, free: 4.703 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/0.3806, allocations: 6.312 kB / 379.8 MB, free: 4.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3807, allocations: 325.8 kB / 380.1 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.3809, allocations: 69.91 kB / 380.2 MB, free: 4.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.381, allocations: 129.6 kB / 380.3 MB, free: 4.199 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.3811, allocations: 70.27 kB / 380.4 MB, free: 4.148 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3811, allocations: 0 / 380.4 MB, free: 4.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003532/0.3815, allocations: 248.2 kB / 380.6 MB, free: 3.945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3815, allocations: 4 kB / 380.6 MB, free: 3.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3816, allocations: 4 kB / 380.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.3816, allocations: 4 kB / 380.6 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.3817, allocations: 30.98 kB / 380.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.3818, allocations: 7.953 kB / 380.7 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.984e-05/0.3819, allocations: 22.52 kB / 380.7 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3819, allocations: 15.12 kB / 380.7 MB, free: 3.871 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,greaterEqual.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 0.0001168/0.3821, allocations: 141.2 kB / 380.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.3821, allocations: 15.81 kB / 380.9 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003156/0.3824, allocations: 183.7 kB / 381 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3824, allocations: 0 / 381 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3824, allocations: 3.984 kB / 381 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3824, allocations: 7.953 kB / 381.1 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007501/0.3832, allocations: 0.5722 MB / 381.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3832, allocations: 7.938 kB / 381.6 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.737e-05/0.3833, allocations: 23.73 kB / 381.7 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3833, allocations: 3.953 kB / 381.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3833, allocations: 0 / 381.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3833, allocations: 4 kB / 381.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3833, allocations: 0 / 381.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.3837, allocations: 272.7 kB / 381.9 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.3837, allocations: 92.95 kB / 382 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.3838, allocations: 7.391 kB / 382 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.702e-05/0.3839, allocations: 15.36 kB / 382 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.166e-05/0.3839, allocations: 15.97 kB / 382.1 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.384, allocations: 11.38 kB / 382.1 MB, free: 2.586 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.542e-05/0.3841, allocations: 108.4 kB / 382.2 MB, free: 2.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3841, allocations: 0 / 382.2 MB, free: 2.488 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002888/0.3844, allocations: 42.34 kB / 382.2 MB, free: 2.453 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,greaterEqual.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.0001859/0.3846, allocations: 110.2 kB / 382.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003213/0.3849, allocations: 181.8 kB / 382.5 MB, free: 2.203 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3849, allocations: 0 / 382.5 MB, free: 2.203 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.385, allocations: 77.5 kB / 382.6 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.3853, allocations: 22.66 kB / 382.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005192/0.3858, allocations: 232.4 kB / 382.8 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.3862, allocations: 0.7403 MB / 383.6 MB, free: 1.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.799e-05/0.3863, allocations: 26.06 kB / 383.6 MB, free: 1.125 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.535e-05/0.3863, allocations: 27.38 kB / 383.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3863, allocations: 0 / 383.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of Templates: time 0.004698/0.3911, allocations: 1.656 MB / 385.3 MB, free: 15.46 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)