Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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/ModelicaByExample 0.6.0/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 ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/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(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003924/0.003924, allocations: 174.7 kB / 15.12 MB, free: 5.582 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.036/1.036, allocations: 194.5 MB / 210.3 MB, free: 7.535 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03521/0.03521, allocations: 8.096 MB / 263.6 MB, free: 2.145 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001495/0.001495, allocations: 120.6 kB / 310.6 MB, free: 27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003352/0.0003352, allocations: 15.98 kB / 367.3 MB, free: 2.277 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1648, allocations: 46.2 MB / 413.5 MB, free: 47.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07189/0.2367, allocations: 74.68 MB / 488.1 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001278/0.2369, allocations: 53.16 kB / 488.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01037/0.2472, allocations: 4.08 MB / 492.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2473, allocations: 0 / 492.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.2473, allocations: 4 kB / 492.3 MB, free: 6.938 MB / 330.7 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.0007419/0.248, allocations: 0.5524 MB / 492.8 MB, free: 6.332 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.2481, allocations: 8.031 kB / 492.8 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.2481, allocations: 27.62 kB / 492.9 MB, free: 6.297 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.2484, allocations: 244.1 kB / 493.1 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.2484, allocations: 16.44 kB / 493.1 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2484, allocations: 24 kB / 493.1 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.2489, allocations: 231.2 kB / 493.4 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.2489, allocations: 11.84 kB / 493.4 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.2489, allocations: 4 kB / 493.4 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2489, allocations: 4 kB / 493.4 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004961/0.2495, allocations: 221.6 kB / 493.6 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.2505, allocations: 0.7207 MB / 494.3 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.2511, allocations: 270.5 kB / 494.6 MB, free: 4.465 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.2511, allocations: 7.938 kB / 494.6 MB, free: 4.457 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.2515, allocations: 185 kB / 494.8 MB, free: 4.266 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.2515, allocations: 0 / 494.8 MB, free: 4.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.00224/0.2538, allocations: 1.261 MB / 496 MB, free: 2.914 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.2538, allocations: 59.39 kB / 496.1 MB, free: 2.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.2539, allocations: 164 kB / 496.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.254, allocations: 37.7 kB / 496.3 MB, free: 2.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.2541, allocations: 136.7 kB / 496.4 MB, free: 2.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.374e-05/0.2541, allocations: 106.5 kB / 496.5 MB, free: 2.395 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.271e-05/0.2541, allocations: 8 kB / 496.5 MB, free: 2.387 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.283e-05/0.2542, allocations: 334.8 kB / 496.9 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.2545, allocations: 114.9 kB / 497 MB, free: 1.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.2548, allocations: 139.4 kB / 497.1 MB, free: 1.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.2551, allocations: 154.8 kB / 497.3 MB, free: 1.637 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.2551, allocations: 3.938 kB / 497.3 MB, free: 1.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006765/0.2558, allocations: 382.8 kB / 497.6 MB, free: 1.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.2558, allocations: 39.12 kB / 497.7 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.2558, allocations: 7.984 kB / 497.7 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.2558, allocations: 0 / 497.7 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.2561, allocations: 79.89 kB / 497.8 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.2562, allocations: 4 kB / 497.8 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.2564, allocations: 35.97 kB / 497.8 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.2564, allocations: 12 kB / 497.8 MB, free: 1.066 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = true ) "Sensed speed" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * 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.0001689/0.2566, allocations: 157.2 kB / 498 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.2566, allocations: 31.7 kB / 498 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.2567, allocations: 38.59 kB / 498 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2567, allocations: 4 kB / 498 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2567, allocations: 0 / 498 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2567, allocations: 3.984 kB / 498 MB, free: 0.832 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.2578, allocations: 0.8089 MB / 498.9 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.2578, allocations: 7.984 kB / 498.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.2581, allocations: 75.89 kB / 498.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2581, allocations: 4 kB / 498.9 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.2581, allocations: 4 kB / 498.9 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2581, allocations: 8.062 kB / 499 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2582, allocations: 0 / 499 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009306/0.2591, allocations: 0.5902 MB / 499.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.2592, allocations: 96.83 kB / 499.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.2592, allocations: 8.031 kB / 499.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.2594, allocations: 31.98 kB / 499.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.2595, allocations: 31.91 kB / 499.7 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2595, allocations: 8 kB / 499.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.474e-05/0.2596, allocations: 136.9 kB / 499.8 MB, free: 14.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2596, allocations: 0 / 499.8 MB, free: 14.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.2599, allocations: 68 kB / 499.9 MB, free: 14.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001032/0.26, allocations: 115.2 kB / 0.4883 GB, free: 14.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006424/0.2606, allocations: 343.2 kB / 0.4886 GB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2607, allocations: 0 / 0.4886 GB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000312/0.261, allocations: 159.8 kB / 0.4888 GB, free: 14.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.2613, allocations: 44.28 kB / 0.4888 GB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.2635, allocations: 1.032 MB / 0.4898 GB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.2637, allocations: 0.76 MB / 0.4906 GB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.026e-05/0.2638, allocations: 22.28 kB / 0.4906 GB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.842e-05/0.2639, allocations: 23.44 kB / 0.4906 GB, free: 12.27 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2639, allocations: 0 / 0.4906 GB, free: 12.27 MB / 346.7 MB Notification: Performance of Templates: time 0.00469/0.2686, allocations: 2.588 MB / 0.4931 GB, free: 9.738 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)