Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009096/0.0009097, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.118/1.118, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00158/0.00158, allocations: 114.9 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 8 kB / 310.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0764/0.07675, allocations: 44.5 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2039/0.2807, allocations: 71.52 MB / 426.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.2809, allocations: 65.62 kB / 426.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006041/0.287, allocations: 2.937 MB / 429.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.287, allocations: 0 / 429.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.287, allocations: 4 kB / 429.6 MB, free: 15.47 MB / 314.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.0003624/0.2874, allocations: 432.8 kB / 430 MB, free: 15.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.2874, allocations: 12.02 kB / 430 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.2875, allocations: 26.78 kB / 430 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.2877, allocations: 230.5 kB / 430.3 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.2877, allocations: 27.44 kB / 430.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.2877, allocations: 23.25 kB / 430.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.2881, allocations: 265.7 kB / 430.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2881, allocations: 0 / 430.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.2881, allocations: 10.69 kB / 430.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.2881, allocations: 4 kB / 430.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.2884, allocations: 171.9 kB / 430.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007873/0.2891, allocations: 0.9444 MB / 431.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001967/0.2894, allocations: 156 kB / 431.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2894, allocations: 4.141 kB / 431.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001397/0.2895, allocations: 120 kB / 432 MB, free: 13.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.502e-06/0.2895, allocations: 0 / 432 MB, free: 13.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003102/0.2899, allocations: 205.4 kB / 432.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.2899, allocations: 59.41 kB / 432.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.041e-05/0.29, allocations: 143.9 kB / 432.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.29, allocations: 36.27 kB / 432.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.618e-05/0.29, allocations: 139.5 kB / 432.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.2901, allocations: 57.44 kB / 432.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.2901, allocations: 7.5 kB / 432.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.301e-05/0.2901, allocations: 325.6 kB / 432.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.89e-05/0.2902, allocations: 61.94 kB / 433 MB, free: 12.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.2903, allocations: 135.1 kB / 433.1 MB, free: 12.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.641e-05/0.2904, allocations: 72.84 kB / 433.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2905, allocations: 4 kB / 433.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000276/0.2907, allocations: 248.8 kB / 433.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.2908, allocations: 11.95 kB / 433.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2908, allocations: 1.547 kB / 433.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2908, allocations: 10.66 kB / 433.5 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2909, allocations: 34.8 kB / 433.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2909, allocations: 10.09 kB / 433.5 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.799e-05/0.291, allocations: 18.91 kB / 433.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.291, allocations: 11.31 kB / 433.5 MB, free: 11.88 MB / 314.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 () * Number of clocked 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.043e-05/0.2911, allocations: 158.8 kB / 433.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.66e-05/0.2912, allocations: 7.906 kB / 433.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.2914, allocations: 198.2 kB / 433.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2914, allocations: 5.031 kB / 433.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2914, allocations: 0 / 433.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2915, allocations: 5.625 kB / 433.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.2919, allocations: 0.5854 MB / 434.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.292, allocations: 0 / 434.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-05/0.292, allocations: 21.17 kB / 434.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.292, allocations: 4 kB / 434.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.2921, allocations: 7.75 kB / 434.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2921, allocations: 0 / 434.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2921, allocations: 0 / 434.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.2923, allocations: 276 kB / 434.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.2923, allocations: 91.92 kB / 434.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.2923, allocations: 10.98 kB / 434.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.2924, allocations: 10.88 kB / 434.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.2925, allocations: 19.09 kB / 434.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2925, allocations: 13.55 kB / 434.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.328e-05/0.2925, allocations: 94.78 kB / 435 MB, free: 10.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 4 kB / 435 MB, free: 10.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002617/0.2928, allocations: 39 kB / 435.1 MB, free: 10.47 MB / 314.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) * Number of clocked states: 0 () * 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.0001086/0.2929, allocations: 109.8 kB / 435.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.2932, allocations: 176.5 kB / 435.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2932, allocations: 0 / 435.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.421e-05/0.2933, allocations: 80.78 kB / 435.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.2935, allocations: 18.3 kB / 435.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004274/0.2939, allocations: 391.3 kB / 435.8 MB, free: 9.781 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.294, allocations: 0.7406 MB / 436.6 MB, free: 9.016 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.187e-05/0.2941, allocations: 21.95 kB / 436.6 MB, free: 8.996 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.2942, allocations: 30.98 kB / 436.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of SimCode: time 3e-07/0.2942, allocations: 0 / 436.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of Templates: time 0.003479/0.2976, allocations: 1.633 MB / 438.2 MB, free: 7.402 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)