Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.000949/0.000949, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.425/1.425, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001654/0.001654, allocations: 113.7 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-05/1.859e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 44.48 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3339/0.4415, allocations: 70.13 MB / 412.7 MB, free: 25.49 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.4418, allocations: 63.27 kB / 412.7 MB, free: 25.46 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006299/0.4481, allocations: 2.737 MB / 415.5 MB, free: 23.33 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4481, allocations: 0 / 415.5 MB, free: 23.33 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.4482, allocations: 4 kB / 415.5 MB, free: 23.33 MB / 315.1 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.0004522/0.4486, allocations: 431.1 kB / 415.9 MB, free: 22.88 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.4487, allocations: 8.031 kB / 415.9 MB, free: 22.88 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.227e-05/0.4487, allocations: 26.28 kB / 415.9 MB, free: 22.85 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.4489, allocations: 219.7 kB / 416.2 MB, free: 22.61 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.449, allocations: 8 kB / 416.2 MB, free: 22.61 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.449, allocations: 15.09 kB / 416.2 MB, free: 22.59 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002602/0.4493, allocations: 155.4 kB / 416.3 MB, free: 22.49 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.4496, allocations: 201.8 kB / 416.5 MB, free: 22.33 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.4496, allocations: 0.5625 kB / 416.5 MB, free: 22.33 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.4496, allocations: 0 / 416.5 MB, free: 22.33 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.4496, allocations: 4 kB / 416.5 MB, free: 22.33 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007629/0.4504, allocations: 0.6332 MB / 417.2 MB, free: 21.76 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.4506, allocations: 160.5 kB / 417.3 MB, free: 21.65 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.4507, allocations: 65.16 kB / 417.4 MB, free: 21.61 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.4508, allocations: 12.17 kB / 417.4 MB, free: 21.59 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001442/0.4509, allocations: 101.6 kB / 417.5 MB, free: 21.5 MB / 315.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.4509, allocations: 0 / 417.5 MB, free: 21.5 MB / 315.1 MB Notification: Performance of matching and sorting (n=24): time 0.0002677/0.4512, allocations: 154.9 kB / 417.6 MB, free: 21.37 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.4512, allocations: 58.78 kB / 417.7 MB, free: 21.3 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.906e-05/0.4513, allocations: 130.6 kB / 417.8 MB, free: 21.18 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.4513, allocations: 33.14 kB / 417.9 MB, free: 21.14 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.4514, allocations: 127.2 kB / 418 MB, free: 21.02 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.4514, allocations: 57.69 kB / 418 MB, free: 20.98 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-06/0.4515, allocations: 0 / 418 MB, free: 20.98 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.4515, allocations: 332 kB / 418.4 MB, free: 20.65 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.4516, allocations: 52.09 kB / 418.4 MB, free: 20.62 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.4518, allocations: 119.5 kB / 418.5 MB, free: 20.5 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.648e-05/0.4519, allocations: 61.44 kB / 418.6 MB, free: 20.46 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4519, allocations: 0 / 418.6 MB, free: 20.46 MB / 315.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002617/0.4521, allocations: 213 kB / 418.8 MB, free: 20.28 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4522, allocations: 4.938 kB / 418.8 MB, free: 20.28 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4522, allocations: 0 / 418.8 MB, free: 20.28 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4522, allocations: 5.031 kB / 418.8 MB, free: 20.27 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.4523, allocations: 32.61 kB / 418.8 MB, free: 20.25 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4524, allocations: 4 kB / 418.8 MB, free: 20.24 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.219e-05/0.4525, allocations: 20.75 kB / 418.9 MB, free: 20.22 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.4525, allocations: 12.94 kB / 418.9 MB, free: 20.21 MB / 315.1 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 7.878e-05/0.4526, allocations: 126.9 kB / 419 MB, free: 20.09 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.4526, allocations: 19.75 kB / 419 MB, free: 20.07 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.4529, allocations: 171.7 kB / 419.2 MB, free: 19.94 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.4529, allocations: 0 / 419.2 MB, free: 19.94 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4529, allocations: 4 kB / 419.2 MB, free: 19.93 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4529, allocations: 3.984 kB / 419.2 MB, free: 19.93 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005197/0.4534, allocations: 0.5061 MB / 419.7 MB, free: 19.45 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4535, allocations: 0 / 419.7 MB, free: 19.45 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.698e-05/0.4535, allocations: 23.17 kB / 419.7 MB, free: 19.43 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.4536, allocations: 0 / 419.7 MB, free: 19.43 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.4536, allocations: 0 / 419.7 MB, free: 19.43 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4536, allocations: 8.766 kB / 419.7 MB, free: 19.42 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.4536, allocations: 1.078 kB / 419.7 MB, free: 19.42 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.4538, allocations: 261.3 kB / 420 MB, free: 19.18 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.4539, allocations: 92.86 kB / 420.1 MB, free: 19.07 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.4539, allocations: 2.875 kB / 420.1 MB, free: 19.07 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.454, allocations: 4 kB / 420.1 MB, free: 19.07 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.4541, allocations: 33.28 kB / 420.1 MB, free: 19.04 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.4541, allocations: 4 kB / 420.1 MB, free: 19.04 MB / 315.1 MB Notification: Performance of sorting global known variables: time 3.098e-05/0.4541, allocations: 93.33 kB / 420.2 MB, free: 18.95 MB / 315.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4541, allocations: 0 / 420.2 MB, free: 18.95 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.4544, allocations: 34.44 kB / 420.3 MB, free: 18.92 MB / 315.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 (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.0001196/0.4545, allocations: 112.2 kB / 420.4 MB, free: 18.8 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.4548, allocations: 157.8 kB / 420.5 MB, free: 18.68 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4548, allocations: 0 / 420.5 MB, free: 18.68 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 9.85e-05/0.4549, allocations: 81.41 kB / 420.6 MB, free: 18.62 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.4551, allocations: 12.03 kB / 420.6 MB, free: 18.62 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.4555, allocations: 213 kB / 420.8 MB, free: 18.42 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001544/0.4556, allocations: 0.7362 MB / 421.6 MB, free: 17.66 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 9.79e-05/0.4557, allocations: 26.06 kB / 421.6 MB, free: 17.64 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.4558, allocations: 23.38 kB / 421.6 MB, free: 17.61 MB / 315.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4558, allocations: 4 kB / 421.6 MB, free: 17.61 MB / 315.1 MB Notification: Performance of Templates: time 0.00397/0.4598, allocations: 1.617 MB / 423.2 MB, free: 16.05 MB / 315.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)