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.001401/0.001401, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.0022/0.0022, allocations: 217.2 kB / 22.25 MB, free: 4.855 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.517/1.517, allocations: 207.7 MB / 233.1 MB, free: 9.805 MB / 190.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.05468/0.05468, allocations: 8.204 MB / 293.5 MB, free: 13.47 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 81.62 kB / 410.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07671/0.07906, allocations: 50.93 MB / 461.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.00418/0.08324, allocations: 2.299 MB / 464.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.08459, allocations: 0.6514 MB / 464.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.08472, allocations: 15.88 kB / 464.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.08487, allocations: 31.66 kB / 464.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.08504, allocations: 75.33 kB / 464.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.08529, allocations: 71.86 kB / 465 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.08566, allocations: 306.7 kB / 465.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.08584, allocations: 66.23 kB / 465.3 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.08601, allocations: 119.6 kB / 465.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.08618, allocations: 119.4 kB / 465.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.465e-05/0.08622, allocations: 24 kB / 465.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.75e-05/0.08627, allocations: 24 kB / 465.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.182e-05/0.08633, allocations: 43.84 kB / 465.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.08646, allocations: 111.5 kB / 465.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.08681, allocations: 286.8 kB / 466.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.08682, allocations: 0 / 466.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.08682, allocations: 0 / 466.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.08682, allocations: 0 / 466.1 MB, free: 8.574 MB / 334.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.001102/0.08793, allocations: 0.511 MB / 466.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.08797, allocations: 15.98 kB / 466.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.395e-05/0.08803, allocations: 24.8 kB / 466.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.08841, allocations: 194 kB / 466.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.08843, allocations: 16.81 kB / 466.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-05/0.08849, allocations: 28.38 kB / 466.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.08903, allocations: 231.5 kB / 467.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.08905, allocations: 7.891 kB / 467.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.08908, allocations: 8 kB / 467.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.08909, allocations: 8 kB / 467.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.08968, allocations: 193.6 kB / 467.3 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.09071, allocations: 0.5333 MB / 467.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007447/0.09146, allocations: 234.4 kB / 468 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.09177, allocations: 108.8 kB / 468.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.09178, allocations: 0 / 468.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004223/0.0922, allocations: 177 kB / 468.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.693e-06/0.0922, allocations: 0 / 468.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002642/0.09485, allocations: 1.054 MB / 469.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.0949, allocations: 63.39 kB / 469.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.09509, allocations: 162.6 kB / 469.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.09512, allocations: 37.7 kB / 469.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.09523, allocations: 144.8 kB / 469.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.854e-05/0.09533, allocations: 111 kB / 469.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/0.09542, allocations: 57.69 kB / 469.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.09559, allocations: 334.8 kB / 470.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/0.09591, allocations: 122 kB / 470.4 MB, free: 4.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.09627, allocations: 165.1 kB / 470.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.09773, allocations: 0.5557 MB / 471.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09774, allocations: 0 / 471.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008245/0.09856, allocations: 388 kB / 471.5 MB, free: 2.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.0986, allocations: 37.69 kB / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.09861, allocations: 0 / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.09863, allocations: 8 kB / 471.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.09896, allocations: 75.89 kB / 471.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.09897, allocations: 4 kB / 471.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.09919, allocations: 23.97 kB / 471.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.09922, allocations: 8 kB / 471.6 MB, free: 2.695 MB / 334.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.0002374/0.09945, allocations: 183.6 kB / 471.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.09949, allocations: 19.86 kB / 471.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.424e-05/0.09955, allocations: 30.59 kB / 471.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.09956, allocations: 7.938 kB / 471.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.09956, allocations: 0 / 471.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.09957, allocations: 3.984 kB / 471.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.1009, allocations: 0.6864 MB / 472.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1009, allocations: 4 kB / 472.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.1012, allocations: 67.89 kB / 472.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1012, allocations: 0 / 472.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.1012, allocations: 12.06 kB / 472.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1012, allocations: 4 kB / 472.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1012, allocations: 0 / 472.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.1024, allocations: 0.5378 MB / 473.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.158e-05/0.1024, allocations: 11.91 kB / 473.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.1024, allocations: 12 kB / 473.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.1027, allocations: 24.02 kB / 473.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1027, allocations: 23.95 kB / 473.3 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.1028, allocations: 15.98 kB / 473.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.1029, allocations: 123.2 kB / 473.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1029, allocations: 0 / 473.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000319/0.1032, allocations: 64 kB / 473.5 MB, free: 0.8008 MB / 334.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.0001352/0.1034, allocations: 115.1 kB / 473.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008002/0.1042, allocations: 344.8 kB / 473.9 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1042, allocations: 0 / 473.9 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.1045, allocations: 135.8 kB / 474 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.105, allocations: 59.39 kB / 474.1 MB, free: 140 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.1077, allocations: 0.8779 MB / 475 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.1078, allocations: 146.6 kB / 475.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.1079, allocations: 26.27 kB / 475.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.431e-05/0.108, allocations: 27.44 kB / 475.2 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.108, allocations: 0 / 475.2 MB, free: 15 MB / 350.1 MB Notification: Performance of Templates: time 0.007658/0.1156, allocations: 3.263 MB / 478.4 MB, free: 11.8 MB / 350.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.619442917406559] Failed to read output from testmodel.py, exit status != 0: 0.12322358414530754 0.138697437 0.048731323 Calling exit ...