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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 80.28 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 166.6 kB / 22.46 MB, free: 5.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 158.6 MB / 184.2 MB, free: 6.414 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04706/0.04706, allocations: 6.404 MB / 242.9 MB, free: 12.77 MB / 238.1 MB " [Timeout remaining time 180] 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 360.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/3.022e-05, allocations: 6.281 kB / 360.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003054/0.003084, allocations: 2.31 MB / 362.6 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.004208, allocations: 0.6397 MB / 363.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.004419, allocations: 11.88 kB / 363.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.004582, allocations: 31.66 kB / 363.3 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.004796, allocations: 83.27 kB / 363.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.005083, allocations: 79.7 kB / 363.5 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.005434, allocations: 306.6 kB / 363.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.005613, allocations: 74.34 kB / 363.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.005872, allocations: 167.7 kB / 364 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.006022, allocations: 95.69 kB / 364.1 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.006072, allocations: 24 kB / 364.1 MB, free: 7.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.494e-05/0.006117, allocations: 24 kB / 364.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.741e-05/0.006165, allocations: 55.81 kB / 364.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.006273, allocations: 91.75 kB / 364.3 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.006569, allocations: 287.1 kB / 364.6 MB, free: 6.801 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.006572, allocations: 0 / 364.6 MB, free: 6.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.006572, allocations: 0 / 364.6 MB, free: 6.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.006581, allocations: 0 / 364.6 MB, free: 6.801 MB / 286.1 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.0009426/0.007523, allocations: 0.5148 MB / 365.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.007558, allocations: 15.98 kB / 365.1 MB, free: 6.234 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.007625, allocations: 24.8 kB / 365.1 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.007914, allocations: 193.3 kB / 365.3 MB, free: 5.996 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.007933, allocations: 16.88 kB / 365.3 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.184e-05/0.007975, allocations: 28.31 kB / 365.4 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.008424, allocations: 224.6 kB / 365.6 MB, free: 5.727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.008443, allocations: 4.172 kB / 365.6 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.008467, allocations: 16.36 kB / 365.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.008473, allocations: 7.938 kB / 365.6 MB, free: 5.699 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004965/0.00897, allocations: 189.8 kB / 365.8 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007902/0.00976, allocations: 0.5375 MB / 366.3 MB, free: 4.945 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.01041, allocations: 238.4 kB / 366.6 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.01068, allocations: 116.4 kB / 366.7 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.0107, allocations: 8.375 kB / 366.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.01106, allocations: 166.3 kB / 366.8 MB, free: 4.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.01106, allocations: 4 kB / 366.8 MB, free: 4.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002235/0.0133, allocations: 1.04 MB / 367.9 MB, free: 3.316 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.01333, allocations: 59.41 kB / 367.9 MB, free: 3.246 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.01344, allocations: 170.5 kB / 368.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.01346, allocations: 29.7 kB / 368.1 MB, free: 3.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.228e-05/0.01352, allocations: 144.8 kB / 368.3 MB, free: 2.891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.455e-05/0.01358, allocations: 115 kB / 368.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.239e-05/0.01365, allocations: 57.69 kB / 368.4 MB, free: 2.715 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.0137, allocations: 334.8 kB / 368.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/0.01398, allocations: 122 kB / 368.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.01425, allocations: 169.1 kB / 369.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.01545, allocations: 0.5518 MB / 369.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.01545, allocations: 0 / 369.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006735/0.01612, allocations: 388.3 kB / 370 MB, free: 1.094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.01615, allocations: 37.69 kB / 370 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01616, allocations: 0 / 370 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.01617, allocations: 4 kB / 370 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.01645, allocations: 75.89 kB / 370.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.01646, allocations: 7.875 kB / 370.1 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.01667, allocations: 23.97 kB / 370.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.01669, allocations: 15.94 kB / 370.1 MB, free: 0.9258 MB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if springDamper.phi_nominal >= 2.220446049250313e-16 then springDamper.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 damper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if damper.phi_nominal >= 2.220446049250313e-16 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" 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,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.01684, allocations: 168.6 kB / 370.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.01687, allocations: 23.86 kB / 370.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.01693, allocations: 22.66 kB / 370.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.01693, allocations: 7.984 kB / 370.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.01693, allocations: 4 kB / 370.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.01694, allocations: 7.922 kB / 370.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009891/0.01793, allocations: 0.675 MB / 371.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.01793, allocations: 3.938 kB / 371.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/0.01827, allocations: 79.94 kB / 371.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.01827, allocations: 4 kB / 371.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.0183, allocations: 8 kB / 371.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.0183, allocations: 4 kB / 371.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.0183, allocations: 3.984 kB / 371.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.01943, allocations: 0.529 MB / 371.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.653e-05/0.01947, allocations: 23.8 kB / 371.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.01951, allocations: 11.94 kB / 371.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.01974, allocations: 27.95 kB / 371.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.491e-05/0.01983, allocations: 27.95 kB / 371.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.01985, allocations: 11.98 kB / 371.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.01996, allocations: 128.5 kB / 371.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01996, allocations: 0 / 371.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.02028, allocations: 60 kB / 372 MB, free: 15.03 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001336/0.02041, allocations: 122.7 kB / 372.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007714/0.02119, allocations: 332.9 kB / 372.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.02119, allocations: 4 kB / 372.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.02155, allocations: 140 kB / 372.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.02197, allocations: 44.72 kB / 372.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.02446, allocations: 0.7777 MB / 373.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.0246, allocations: 142.6 kB / 373.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.02471, allocations: 26.27 kB / 373.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.02478, allocations: 24.5 kB / 373.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.02478, allocations: 0 / 373.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of Templates: time 0.007418/0.0322, allocations: 2.974 MB / 376.5 MB, free: 10.45 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.222027491778135] Failed to read output from testmodel.py, exit status != 0: 0.040069662034511566 0.054971757 0.045408801000000006 Calling exit ...