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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 191.8 kB / 22.23 MB, free: 5.102 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.537/1.537, allocations: 207.6 MB / 233 MB, free: 10.01 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.05101/0.05101, allocations: 8.201 MB / 293.5 MB, free: 13.68 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002237/0.002237, allocations: 76.11 kB / 410.9 MB, free: 46.69 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09856/0.1008, allocations: 50.92 MB / 461.8 MB, free: 13.04 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004295/0.1051, allocations: 2.451 MB / 464.3 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001302/0.1064, allocations: 0.6826 MB / 464.9 MB, free: 9.879 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.1065, allocations: 11.94 kB / 464.9 MB, free: 9.867 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.1067, allocations: 31.66 kB / 465 MB, free: 9.836 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1069, allocations: 75.28 kB / 465.1 MB, free: 9.762 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.1072, allocations: 71.84 kB / 465.1 MB, free: 9.691 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004148/0.1076, allocations: 302.7 kB / 465.4 MB, free: 9.395 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.1078, allocations: 78.23 kB / 465.5 MB, free: 9.316 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.108, allocations: 119.6 kB / 465.6 MB, free: 9.199 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.1081, allocations: 123.5 kB / 465.7 MB, free: 9.078 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.578e-05/0.1082, allocations: 24 kB / 465.8 MB, free: 9.055 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.288e-05/0.1082, allocations: 27.94 kB / 465.8 MB, free: 9.027 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.1083, allocations: 51.84 kB / 465.8 MB, free: 8.977 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.1084, allocations: 131.4 kB / 466 MB, free: 8.848 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.1088, allocations: 282.8 kB / 466.2 MB, free: 8.57 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1088, allocations: 3.938 kB / 466.2 MB, free: 8.566 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.405e-06/0.1088, allocations: 0 / 466.2 MB, free: 8.566 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.666e-06/0.1089, allocations: 0 / 466.2 MB, free: 8.566 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.001234/0.1101, allocations: 0.5149 MB / 466.8 MB, free: 8.016 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1101, allocations: 11.98 kB / 466.8 MB, free: 8.004 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.1102, allocations: 28.8 kB / 466.8 MB, free: 7.977 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1106, allocations: 194 kB / 467 MB, free: 7.762 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1106, allocations: 16.81 kB / 467 MB, free: 7.746 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.968e-05/0.1107, allocations: 24.31 kB / 467 MB, free: 7.723 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005698/0.1113, allocations: 227.5 kB / 467.2 MB, free: 7.492 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.1113, allocations: 7.953 kB / 467.3 MB, free: 7.484 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.1113, allocations: 8 kB / 467.3 MB, free: 7.477 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1113, allocations: 7.984 kB / 467.3 MB, free: 7.469 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006126/0.1119, allocations: 197.6 kB / 467.5 MB, free: 7.277 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1131, allocations: 0.6264 MB / 468.1 MB, free: 6.605 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008026/0.1139, allocations: 242.4 kB / 468.3 MB, free: 6.359 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.1143, allocations: 108.8 kB / 468.4 MB, free: 6.25 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.1143, allocations: 4 kB / 468.4 MB, free: 6.246 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004347/0.1147, allocations: 169.1 kB / 468.6 MB, free: 6.07 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.1147, allocations: 0 / 468.6 MB, free: 6.07 MB / 334.1 MB
Notification: Performance of matching and sorting (n=32): time 0.002708/0.1174, allocations: 1.046 MB / 469.6 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.1175, allocations: 59.34 kB / 469.7 MB, free: 4.902 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1178, allocations: 179.2 kB / 469.9 MB, free: 4.719 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.1178, allocations: 37.7 kB / 469.9 MB, free: 4.676 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1179, allocations: 144.8 kB / 470.1 MB, free: 4.527 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.118, allocations: 107.1 kB / 470.2 MB, free: 4.422 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.1181, allocations: 61.69 kB / 470.2 MB, free: 4.355 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001552/0.1183, allocations: 334.8 kB / 470.6 MB, free: 4.02 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.1186, allocations: 92.27 kB / 470.6 MB, free: 3.926 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.1189, allocations: 139.4 kB / 470.8 MB, free: 3.781 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.1203, allocations: 0.5432 MB / 471.3 MB, free: 3.211 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1203, allocations: 0 / 471.3 MB, free: 3.211 MB / 334.1 MB
Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007659/0.1211, allocations: 366.3 kB / 471.7 MB, free: 2.84 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/0.1211, allocations: 41.64 kB / 471.7 MB, free: 2.793 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1211, allocations: 0 / 471.7 MB, free: 2.793 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1211, allocations: 4 kB / 471.7 MB, free: 2.789 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.1215, allocations: 75.88 kB / 471.8 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1215, allocations: 0 / 471.8 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/0.1217, allocations: 32.03 kB / 471.8 MB, free: 2.684 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.1217, allocations: 11.94 kB / 471.8 MB, free: 2.672 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 >= 1e-15 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 >= 1e-15 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.0002485/0.122, allocations: 179.2 kB / 472 MB, free: 2.496 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.122, allocations: 31.73 kB / 472 MB, free: 2.465 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.867e-05/0.1221, allocations: 30.64 kB / 472.1 MB, free: 2.438 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1221, allocations: 0 / 472.1 MB, free: 2.438 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.1221, allocations: 4 kB / 472.1 MB, free: 2.434 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1221, allocations: 0 / 472.1 MB, free: 2.434 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.1235, allocations: 0.7598 MB / 472.8 MB, free: 1.613 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1235, allocations: 4 kB / 472.8 MB, free: 1.609 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.1238, allocations: 67.89 kB / 472.9 MB, free: 1.543 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1238, allocations: 4 kB / 472.9 MB, free: 1.539 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.1238, allocations: 8 kB / 472.9 MB, free: 1.531 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.1238, allocations: 0 / 472.9 MB, free: 1.531 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1238, allocations: 4.062 kB / 472.9 MB, free: 1.527 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.125, allocations: 0.533 MB / 473.5 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.08e-05/0.1251, allocations: 19.86 kB / 473.5 MB, free: 0.9531 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.1251, allocations: 12.03 kB / 473.5 MB, free: 0.9414 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.1254, allocations: 23.98 kB / 473.5 MB, free: 0.918 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.1255, allocations: 31.88 kB / 473.5 MB, free: 0.8867 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.1255, allocations: 8 kB / 473.6 MB, free: 0.8789 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001217/0.1256, allocations: 132.3 kB / 473.7 MB, free: 0.75 MB / 334.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1256, allocations: 4 kB / 473.7 MB, free: 0.7461 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003364/0.126, allocations: 67.98 kB / 473.8 MB, free: 0.6797 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.0001418/0.1261, allocations: 111.2 kB / 473.9 MB, free: 0.5625 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.000783/0.1269, allocations: 303.1 kB / 474.2 MB, free: 260 kB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1269, allocations: 4.125 kB / 474.2 MB, free: 256 kB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.1272, allocations: 139.8 kB / 474.3 MB, free: 116 kB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.1277, allocations: 55.7 kB / 474.4 MB, free: 60 kB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.1304, allocations: 0.8895 MB / 475.2 MB, free: 15.13 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.1308, allocations: 0.7522 MB / 476 MB, free: 14.35 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.00011/0.1309, allocations: 26.28 kB / 476 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.131, allocations: 23.44 kB / 476 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of SimCode: time 5.11e-07/0.131, allocations: 0 / 476 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of Templates: time 0.007233/0.1382, allocations: 3.159 MB / 479.2 MB, free: 11.18 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: 5.046643945388496]
Failed to read output from testmodel.py, exit status != 0:
0.1460551181808114 0.159593476 0.047818091
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7efcb9e597b0>