Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.001536/0.001536, allocations: 110 kB / 18.93 MB, free: 2.945 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.001604/0.001604, allocations: 192.3 kB / 22.23 MB, free: 5.16 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.647/1.647, 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.05124/0.05124, allocations: 8.188 MB / 293.4 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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem")
translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") [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.00228/0.00228, allocations: 72.12 kB / 410.9 MB, free: 46.68 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1056, allocations: 50.93 MB / 461.8 MB, free: 13.04 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.004234/0.1099, allocations: 2.427 MB / 464.2 MB, free: 10.59 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0012/0.1111, allocations: 0.6319 MB / 464.9 MB, free: 9.949 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.1112, allocations: 7.938 kB / 464.9 MB, free: 9.941 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.1113, allocations: 35.66 kB / 464.9 MB, free: 9.906 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000155/0.1115, allocations: 75.34 kB / 465 MB, free: 9.832 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.1118, allocations: 71.84 kB / 465.1 MB, free: 9.762 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003667/0.1121, allocations: 298.7 kB / 465.3 MB, free: 9.469 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.1123, allocations: 74.23 kB / 465.4 MB, free: 9.395 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.1125, allocations: 111.6 kB / 465.5 MB, free: 9.285 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.1127, allocations: 127.4 kB / 465.7 MB, free: 9.16 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.201e-05/0.1127, allocations: 24 kB / 465.7 MB, free: 9.137 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.1127, allocations: 24 kB / 465.7 MB, free: 9.113 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.1128, allocations: 59.72 kB / 465.8 MB, free: 9.055 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.1129, allocations: 131.3 kB / 465.9 MB, free: 8.926 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.1133, allocations: 274.9 kB / 466.2 MB, free: 8.656 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1133, allocations: 0 / 466.2 MB, free: 8.656 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.362e-06/0.1133, allocations: 0 / 466.2 MB, free: 8.656 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.158e-05/0.1133, allocations: 4 kB / 466.2 MB, free: 8.652 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.001057/0.1144, allocations: 0.4993 MB / 466.7 MB, free: 8.117 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1144, allocations: 11.98 kB / 466.7 MB, free: 8.105 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.1145, allocations: 32.75 kB / 466.7 MB, free: 8.074 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.1149, allocations: 190.7 kB / 466.9 MB, free: 7.863 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1149, allocations: 16.81 kB / 466.9 MB, free: 7.848 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.1149, allocations: 24.38 kB / 466.9 MB, free: 7.824 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.1155, allocations: 223.5 kB / 467.1 MB, free: 7.598 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.1155, allocations: 4 kB / 467.1 MB, free: 7.594 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.1155, allocations: 8 kB / 467.2 MB, free: 7.586 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1155, allocations: 8 kB / 467.2 MB, free: 7.578 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005929/0.1161, allocations: 193.6 kB / 467.4 MB, free: 7.391 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.1172, allocations: 0.6604 MB / 468 MB, free: 6.68 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007485/0.1179, allocations: 234.5 kB / 468.2 MB, free: 6.441 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.1182, allocations: 108.8 kB / 468.3 MB, free: 6.332 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1183, allocations: 8 kB / 468.4 MB, free: 6.324 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.1187, allocations: 159.2 kB / 468.5 MB, free: 6.156 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.1187, allocations: 0 / 468.5 MB, free: 6.156 MB / 334.1 MB
Notification: Performance of matching and sorting (n=29): time 0.002493/0.1212, allocations: 0.9724 MB / 469.5 MB, free: 5.133 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.1212, allocations: 59.41 kB / 469.5 MB, free: 5.062 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.1214, allocations: 175.6 kB / 469.7 MB, free: 4.879 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.1215, allocations: 29.7 kB / 469.7 MB, free: 4.844 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1216, allocations: 152.7 kB / 469.9 MB, free: 4.688 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.582e-05/0.1217, allocations: 103.1 kB / 470 MB, free: 4.586 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/0.1217, allocations: 53.69 kB / 470 MB, free: 4.527 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001483/0.1219, allocations: 334.8 kB / 470.4 MB, free: 4.191 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.1222, allocations: 91.92 kB / 470.5 MB, free: 4.102 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.1225, allocations: 117.5 kB / 470.6 MB, free: 3.98 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.1239, allocations: 0.527 MB / 471.1 MB, free: 3.43 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.1239, allocations: 4 kB / 471.1 MB, free: 3.426 MB / 334.1 MB
Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007627/0.1247, allocations: 332.5 kB / 471.4 MB, free: 3.09 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.1247, allocations: 37.64 kB / 471.5 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1247, allocations: 0 / 471.5 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1247, allocations: 7.938 kB / 471.5 MB, free: 3.039 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.1251, allocations: 71.92 kB / 471.5 MB, free: 2.969 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.1251, allocations: 0 / 471.5 MB, free: 2.969 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.1253, allocations: 27.97 kB / 471.6 MB, free: 2.941 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.1253, allocations: 8 kB / 471.6 MB, free: 2.934 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: 2
 * Number of states: 0 ()
 * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (35):
 * Single equations (assignments): 34
 * 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.0002353/0.1255, allocations: 169.8 kB / 471.7 MB, free: 2.766 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.1256, allocations: 27.8 kB / 471.8 MB, free: 2.738 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.1256, allocations: 26.66 kB / 471.8 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.1257, allocations: 7.984 kB / 471.8 MB, free: 2.707 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1257, allocations: 0 / 471.8 MB, free: 2.707 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1257, allocations: 0 / 471.8 MB, free: 2.707 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.1269, allocations: 0.6791 MB / 472.5 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1269, allocations: 0 / 472.5 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/0.1272, allocations: 63.89 kB / 472.5 MB, free: 1.906 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1272, allocations: 8.062 kB / 472.6 MB, free: 1.898 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.1272, allocations: 8 kB / 472.6 MB, free: 1.891 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.1273, allocations: 3.984 kB / 472.6 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1273, allocations: 0 / 472.6 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.1283, allocations: 0.5056 MB / 473.1 MB, free: 1.359 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.1283, allocations: 15.95 kB / 473.1 MB, free: 1.344 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1284, allocations: 8 kB / 473.1 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.1286, allocations: 28 kB / 473.1 MB, free: 1.309 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.1287, allocations: 23.95 kB / 473.1 MB, free: 1.285 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.1287, allocations: 19.94 kB / 473.2 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001096/0.1288, allocations: 136.6 kB / 473.3 MB, free: 1.133 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.1288, allocations: 0 / 473.3 MB, free: 1.133 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002966/0.1291, allocations: 60 kB / 473.4 MB, free: 1.074 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: 3 ($whenCondition1,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 (29):
 * Single equations (assignments): 27
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.0001115/0.1292, allocations: 103.2 kB / 473.5 MB, free: 0.9648 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007224/0.13, allocations: 296 kB / 473.8 MB, free: 0.6641 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.13, allocations: 0 / 473.8 MB, free: 0.6641 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.1303, allocations: 119.9 kB / 473.9 MB, free: 0.5469 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.1307, allocations: 59.64 kB / 473.9 MB, free: 500 kB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.1335, allocations: 0.8815 MB / 474.8 MB, free: 15.57 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1338, allocations: 0.748 MB / 475.6 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.000101/0.1339, allocations: 22.3 kB / 475.6 MB, free: 14.77 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.134, allocations: 23.44 kB / 475.6 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of SimCode: time 5.21e-07/0.134, allocations: 4 kB / 475.6 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of Templates: time 0.007188/0.1412, allocations: 3.023 MB / 478.6 MB, free: 11.74 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile [Timeout 660]
(rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.017844310961664]
Failed to read output from testmodel.py, exit status != 0:
0.15028791595250368 0.165802059 0.049158324
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f4e0a1917b0>