Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009652/0.0009653, allocations: 179.2 kB / 16.38 MB, free: 5.766 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.148/1.148, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001806/0.001806, allocations: 111.6 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002799, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07556/0.07585, allocations: 44.5 MB / 355 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2094/0.2853, allocations: 71.5 MB / 426.6 MB, free: 18.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001641/0.2855, allocations: 66.09 kB / 426.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006142/0.2917, allocations: 2.957 MB / 429.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2917, allocations: 0 / 429.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2917, allocations: 4 kB / 429.6 MB, free: 15.45 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.0004013/0.2921, allocations: 446.5 kB / 430 MB, free: 14.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2922, allocations: 12.03 kB / 430 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.799e-05/0.2922, allocations: 24.75 kB / 430 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.2924, allocations: 228.5 kB / 430.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.2924, allocations: 22.94 kB / 430.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.2925, allocations: 27.19 kB / 430.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.2928, allocations: 260.9 kB / 430.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2928, allocations: 4 kB / 430.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.2928, allocations: 11.78 kB / 430.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.2929, allocations: 10.62 kB / 430.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.2931, allocations: 169 kB / 430.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007601/0.2939, allocations: 0.9513 MB / 431.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.2941, allocations: 154.7 kB / 431.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.2941, allocations: 4.141 kB / 431.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.2943, allocations: 117.8 kB / 432 MB, free: 13.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.452e-06/0.2943, allocations: 5.312 kB / 432 MB, free: 13.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003154/0.2946, allocations: 210.3 kB / 432.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.2946, allocations: 58.59 kB / 432.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.529e-05/0.2947, allocations: 136.6 kB / 432.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.2947, allocations: 43.25 kB / 432.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.31e-05/0.2948, allocations: 145.3 kB / 432.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.2948, allocations: 52.78 kB / 432.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.2949, allocations: 6.812 kB / 432.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.758e-05/0.2949, allocations: 333.9 kB / 433 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.011e-05/0.295, allocations: 64.06 kB / 433 MB, free: 12.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2951, allocations: 130.5 kB / 433.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.888e-05/0.2952, allocations: 67.73 kB / 433.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2952, allocations: 0 / 433.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002841/0.2955, allocations: 270.7 kB / 433.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2955, allocations: 4 kB / 433.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2956, allocations: 4 kB / 433.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2956, allocations: 4 kB / 433.5 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.2957, allocations: 31.92 kB / 433.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.2957, allocations: 4 kB / 433.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.435e-05/0.2958, allocations: 19.66 kB / 433.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.2958, allocations: 11.98 kB / 433.6 MB, free: 11.84 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,greaterEqual.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.506e-05/0.2959, allocations: 164.6 kB / 433.7 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.296, allocations: 15.77 kB / 433.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.2962, allocations: 193.3 kB / 433.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2962, allocations: 4 kB / 433.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2963, allocations: 0 / 433.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2963, allocations: 0 / 433.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004953/0.2968, allocations: 0.5861 MB / 434.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2968, allocations: 0 / 434.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.2968, allocations: 22.48 kB / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2969, allocations: 0 / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.2969, allocations: 6.812 kB / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2969, allocations: 0 / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2969, allocations: 0 / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.2971, allocations: 280 kB / 434.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.2971, allocations: 96.89 kB / 434.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.2971, allocations: 4.234 kB / 434.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.087e-05/0.2972, allocations: 11.11 kB / 434.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.921e-05/0.2973, allocations: 24.34 kB / 434.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2973, allocations: 7.938 kB / 435 MB, free: 10.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.653e-05/0.2974, allocations: 101.7 kB / 435.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2974, allocations: 0 / 435.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002569/0.2976, allocations: 44.16 kB / 435.1 MB, free: 10.42 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,greaterEqual.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.0001069/0.2977, allocations: 118.3 kB / 435.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.298, allocations: 172.1 kB / 435.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.298, allocations: 0 / 435.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.509e-05/0.2981, allocations: 84.41 kB / 435.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.2983, allocations: 15.27 kB / 435.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004413/0.2987, allocations: 390.5 kB / 435.9 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.2989, allocations: 0.7367 MB / 436.6 MB, free: 8.973 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.471e-05/0.299, allocations: 25.94 kB / 436.6 MB, free: 8.949 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.299, allocations: 22.94 kB / 436.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of SimCode: time 3.3e-07/0.299, allocations: 0 / 436.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of Templates: time 0.003512/0.3025, allocations: 1.652 MB / 438.3 MB, free: 7.344 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)