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.00144/0.00144, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.094/1.094, allocations: 170.6 MB / 178.7 MB, free: 15.66 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.001589/0.001589, allocations: 115.4 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.307e-05/1.308e-05, allocations: 0 / 262.2 MB, free: 26.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05559/0.05561, allocations: 38.78 MB / 301 MB, free: 3.637 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2206/0.2762, allocations: 65.45 MB / 366.4 MB, free: 2.914 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.2765, allocations: 63.09 kB / 366.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006261/0.2828, allocations: 2.893 MB / 369.4 MB, free: 424 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2828, allocations: 0 / 369.4 MB, free: 424 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.2828, allocations: 4 kB / 369.4 MB, free: 420 kB / 250.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.0004099/0.2832, allocations: 435 kB / 369.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2833, allocations: 16.03 kB / 369.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.072e-05/0.2834, allocations: 31.66 kB / 369.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.2836, allocations: 228.6 kB / 370.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.2837, allocations: 8 kB / 370.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.2837, allocations: 16 kB / 370.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002716/0.284, allocations: 145.8 kB / 370.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.2843, allocations: 223.9 kB / 370.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2844, allocations: 10.02 kB / 370.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.2844, allocations: 0 / 370.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.2844, allocations: 8 kB / 370.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009215/0.2853, allocations: 0.8916 MB / 371.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.2855, allocations: 139.4 kB / 371.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.417e-05/0.2856, allocations: 62.3 kB / 371.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.2857, allocations: 192 / 371.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.2858, allocations: 113.2 kB / 371.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.2858, allocations: 4 kB / 371.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002734/0.2861, allocations: 141.3 kB / 371.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.2862, allocations: 63.39 kB / 371.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.2863, allocations: 139.5 kB / 372 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2863, allocations: 30.25 kB / 372.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.554e-05/0.2864, allocations: 145.6 kB / 372.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.2865, allocations: 54.33 kB / 372.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.2865, allocations: 0.875 kB / 372.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2866, allocations: 325.3 kB / 372.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-05/0.2867, allocations: 54.59 kB / 372.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.2868, allocations: 132.3 kB / 372.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.264e-05/0.2869, allocations: 57.66 kB / 372.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2869, allocations: 0 / 372.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003012/0.2872, allocations: 217.6 kB / 373 MB, free: 13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2873, allocations: 4 kB / 373 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2873, allocations: 8.219 kB / 373 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2873, allocations: 8 kB / 373 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2874, allocations: 35.66 kB / 373.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.2874, allocations: 4 kB / 373.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.793e-05/0.2875, allocations: 19.8 kB / 373.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.2876, allocations: 12 kB / 373.1 MB, free: 12.92 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.0001134/0.2877, allocations: 131.7 kB / 373.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.2878, allocations: 15.8 kB / 373.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000296/0.2881, allocations: 174.8 kB / 373.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2881, allocations: 0 / 373.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.2881, allocations: 4 kB / 373.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2881, allocations: 0 / 373.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006196/0.2887, allocations: 0.5158 MB / 373.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2887, allocations: 0 / 373.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.2888, allocations: 26.92 kB / 374 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2888, allocations: 0 / 374 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.2888, allocations: 0 / 374 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2888, allocations: 4.781 kB / 374 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2889, allocations: 3.953 kB / 374 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.2891, allocations: 253.9 kB / 374.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.984e-05/0.2892, allocations: 85.02 kB / 374.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.2892, allocations: 0 / 374.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.661e-05/0.2893, allocations: 11.98 kB / 374.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.2894, allocations: 23.86 kB / 374.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.2894, allocations: 8 kB / 374.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.937e-05/0.2895, allocations: 99.98 kB / 374.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2895, allocations: 4 kB / 374.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.2897, allocations: 31.91 kB / 374.5 MB, free: 11.6 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.0001324/0.2899, allocations: 110.6 kB / 374.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.2901, allocations: 161.4 kB / 374.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2901, allocations: 0 / 374.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.898e-05/0.2902, allocations: 78.05 kB / 374.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.2904, allocations: 10.94 kB / 374.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.2908, allocations: 226.8 kB / 375.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.2911, allocations: 0.7444 MB / 375.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.368e-05/0.2912, allocations: 30.05 kB / 375.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.2913, allocations: 23.25 kB / 375.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of SimCode: time 3e-07/0.2913, allocations: 4 kB / 375.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of Templates: time 0.004117/0.2954, allocations: 1.605 MB / 377.5 MB, free: 8.668 MB / 266.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)