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.001473/0.001473, allocations: 187.8 kB / 8.353 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.466/1.466, 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.001714/0.001714, allocations: 122.8 kB / 248.1 MB, free: 6.328 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.179e-05/2.181e-05, allocations: 4 kB / 298.1 MB, free: 8.254 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1219, allocations: 44.5 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4863, allocations: 70.77 MB / 413.3 MB, free: 25.03 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.4866, allocations: 64.31 kB / 413.4 MB, free: 25 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006562/0.4932, allocations: 2.874 MB / 416.3 MB, free: 22.6 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4932, allocations: 0 / 416.3 MB, free: 22.6 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.4932, allocations: 8 kB / 416.3 MB, free: 22.59 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0004447/0.4937, allocations: 441.9 kB / 416.7 MB, free: 22.14 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4937, allocations: 8.031 kB / 416.7 MB, free: 22.13 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.4938, allocations: 21.53 kB / 416.7 MB, free: 22.11 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.494, allocations: 222 kB / 417 MB, free: 21.87 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.494, allocations: 18.7 kB / 417 MB, free: 21.86 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.4941, allocations: 16 kB / 417 MB, free: 21.84 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002523/0.4943, allocations: 141.3 kB / 417.1 MB, free: 21.75 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.4946, allocations: 232.3 kB / 417.4 MB, free: 21.55 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.4947, allocations: 3.938 kB / 417.4 MB, free: 21.55 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.4947, allocations: 4 kB / 417.4 MB, free: 21.54 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.4947, allocations: 4 kB / 417.4 MB, free: 21.54 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008149/0.4955, allocations: 0.888 MB / 418.3 MB, free: 20.71 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.4957, allocations: 141 kB / 418.4 MB, free: 20.61 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.4959, allocations: 68.31 kB / 418.5 MB, free: 20.56 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.4959, allocations: 4.172 kB / 418.5 MB, free: 20.55 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000146/0.496, allocations: 111.5 kB / 418.6 MB, free: 20.45 MB / 315.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.4961, allocations: 4.75 kB / 418.6 MB, free: 20.45 MB / 315.1 MB Notification: Performance of matching and sorting (n=23): time 0.0002657/0.4963, allocations: 143.5 kB / 418.7 MB, free: 20.33 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.4964, allocations: 54.03 kB / 418.8 MB, free: 20.27 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.4965, allocations: 144.3 kB / 418.9 MB, free: 20.14 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.4965, allocations: 32.77 kB / 418.9 MB, free: 20.1 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.4966, allocations: 130.1 kB / 419.1 MB, free: 19.98 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.4966, allocations: 58.64 kB / 419.1 MB, free: 19.93 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-06/0.4966, allocations: 4 kB / 419.1 MB, free: 19.93 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.4967, allocations: 326.5 kB / 419.4 MB, free: 19.61 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.273e-05/0.4968, allocations: 48.53 kB / 419.5 MB, free: 19.57 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.4969, allocations: 129.3 kB / 419.6 MB, free: 19.45 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.138e-05/0.497, allocations: 66.56 kB / 419.7 MB, free: 19.4 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.497, allocations: 0 / 419.7 MB, free: 19.4 MB / 315.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002786/0.4973, allocations: 217.8 kB / 419.9 MB, free: 19.21 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.4973, allocations: 8 kB / 419.9 MB, free: 19.21 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4973, allocations: 3.953 kB / 419.9 MB, free: 19.2 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.4974, allocations: 4 kB / 419.9 MB, free: 19.2 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.4975, allocations: 37.41 kB / 419.9 MB, free: 19.16 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4975, allocations: 5.875 kB / 420 MB, free: 19.16 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.523e-05/0.4976, allocations: 11.84 kB / 420 MB, free: 19.15 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.4977, allocations: 15.19 kB / 420 MB, free: 19.14 MB / 315.1 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 () * 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.191e-05/0.4978, allocations: 137.7 kB / 420.1 MB, free: 19 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.4978, allocations: 15.31 kB / 420.1 MB, free: 18.99 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.4981, allocations: 168.4 kB / 420.3 MB, free: 18.86 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4981, allocations: 7.953 kB / 420.3 MB, free: 18.85 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4981, allocations: 0 / 420.3 MB, free: 18.85 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4981, allocations: 0 / 420.3 MB, free: 18.85 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005038/0.4986, allocations: 0.5223 MB / 420.8 MB, free: 18.35 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4986, allocations: 0 / 420.8 MB, free: 18.35 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.888e-05/0.4987, allocations: 25.44 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4987, allocations: 0 / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.4987, allocations: 3.062 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.4987, allocations: 4 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4988, allocations: 0 / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002237/0.499, allocations: 255.7 kB / 421.1 MB, free: 18.08 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.499, allocations: 85.02 kB / 421.2 MB, free: 17.98 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.4991, allocations: 3.953 kB / 421.2 MB, free: 17.98 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.312e-05/0.4991, allocations: 7.984 kB / 421.2 MB, free: 17.97 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.4992, allocations: 24.22 kB / 421.2 MB, free: 17.95 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4992, allocations: 11.44 kB / 421.2 MB, free: 17.94 MB / 315.1 MB Notification: Performance of sorting global known variables: time 3.796e-05/0.4993, allocations: 90.83 kB / 421.3 MB, free: 17.86 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4993, allocations: 0 / 421.3 MB, free: 17.86 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.4996, allocations: 35.91 kB / 421.4 MB, free: 17.82 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 (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) * 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.0001485/0.4997, allocations: 108.3 kB / 421.5 MB, free: 17.71 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0002344/0.5, allocations: 155.2 kB / 421.6 MB, free: 17.6 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5, allocations: 0 / 421.6 MB, free: 17.6 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 8.81e-05/0.5001, allocations: 70.73 kB / 421.7 MB, free: 17.55 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.5003, allocations: 13.77 kB / 421.7 MB, free: 17.54 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.5007, allocations: 225 kB / 421.9 MB, free: 17.32 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.5009, allocations: 0.7362 MB / 422.7 MB, free: 16.56 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 7.975e-05/0.501, allocations: 33.95 kB / 422.7 MB, free: 16.53 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.501, allocations: 23.42 kB / 422.7 MB, free: 16.5 MB / 315.1 MB Notification: Performance of SimCode: time 2.51e-07/0.501, allocations: 0 / 422.7 MB, free: 16.5 MB / 315.1 MB Notification: Performance of Templates: time 0.004309/0.5054, allocations: 1.605 MB / 424.3 MB, free: 14.95 MB / 315.1 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)