Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.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.001501/0.001501, 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.001674/0.001674, allocations: 191.1 kB / 22.23 MB, free: 5.105 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.634/1.634, allocations: 207.6 MB / 233 MB, free: 10.02 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.05478/0.05478, allocations: 8.195 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.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure")
translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") [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.002178/0.002178, allocations: 75.33 kB / 410.9 MB, free: 46.84 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09915, allocations: 50.93 MB / 461.8 MB, free: 13.15 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003867/0.103, allocations: 1.976 MB / 463.8 MB, free: 11.16 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001212/0.1042, allocations: 0.5782 MB / 464.4 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.26e-05/0.1043, allocations: 7.938 kB / 464.4 MB, free: 10.56 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 9.019e-05/0.1044, allocations: 27.72 kB / 464.4 MB, free: 10.54 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.1046, allocations: 47.62 kB / 464.5 MB, free: 10.49 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.1049, allocations: 55.86 kB / 464.5 MB, free: 10.43 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000289/0.1052, allocations: 207.2 kB / 464.7 MB, free: 10.23 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.1054, allocations: 82.3 kB / 464.8 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.1056, allocations: 87.77 kB / 464.9 MB, free: 10.07 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1057, allocations: 91.61 kB / 465 MB, free: 9.977 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.1058, allocations: 20 kB / 465 MB, free: 9.957 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.656e-05/0.1058, allocations: 20 kB / 465 MB, free: 9.938 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.338e-05/0.1059, allocations: 47.84 kB / 465.1 MB, free: 9.891 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.106, allocations: 99.58 kB / 465.2 MB, free: 9.793 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002959/0.1063, allocations: 227.1 kB / 465.4 MB, free: 9.57 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1063, allocations: 3.938 kB / 465.4 MB, free: 9.566 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.663e-06/0.1063, allocations: 0 / 465.4 MB, free: 9.566 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.122e-06/0.1063, allocations: 0 / 465.4 MB, free: 9.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: 49
 * Number of variables: 49
Notification: Performance of Generate backend data structure: time 0.0007551/0.1071, allocations: 417.9 kB / 465.8 MB, free: 9.129 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1071, allocations: 11.98 kB / 465.8 MB, free: 9.117 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.026e-05/0.1071, allocations: 24.84 kB / 465.8 MB, free: 9.094 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.1073, allocations: 130.3 kB / 466 MB, free: 8.941 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.1073, allocations: 16.81 kB / 466 MB, free: 8.926 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/0.1074, allocations: 24.36 kB / 466 MB, free: 8.902 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.1077, allocations: 195.6 kB / 466.2 MB, free: 8.703 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.1078, allocations: 0 / 466.2 MB, free: 8.703 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1078, allocations: 12 kB / 466.2 MB, free: 8.691 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1078, allocations: 4 kB / 466.2 MB, free: 8.688 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.108, allocations: 117.6 kB / 466.3 MB, free: 8.574 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.1094, allocations: 0.672 MB / 467 MB, free: 7.852 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.1098, allocations: 166.5 kB / 467.2 MB, free: 7.68 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.11, allocations: 92.81 kB / 467.2 MB, free: 7.586 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.11, allocations: 7.984 kB / 467.3 MB, free: 7.578 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.1103, allocations: 127.6 kB / 467.4 MB, free: 7.441 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.1103, allocations: 0 / 467.4 MB, free: 7.441 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.001121/0.1114, allocations: 0.5591 MB / 467.9 MB, free: 6.848 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.1115, allocations: 55.41 kB / 468 MB, free: 6.781 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.1116, allocations: 133.7 kB / 468.1 MB, free: 6.645 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.1116, allocations: 37.64 kB / 468.2 MB, free: 6.602 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1117, allocations: 140.3 kB / 468.3 MB, free: 6.457 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.224e-05/0.1118, allocations: 87.31 kB / 468.4 MB, free: 6.371 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.79e-05/0.1119, allocations: 57.45 kB / 468.4 MB, free: 6.309 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001842/0.1121, allocations: 330.8 kB / 468.8 MB, free: 5.977 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1122, allocations: 59.97 kB / 468.8 MB, free: 5.918 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.1124, allocations: 131.7 kB / 468.9 MB, free: 5.758 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.1127, allocations: 212.9 kB / 469.2 MB, free: 5.523 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1127, allocations: 3.984 kB / 469.2 MB, free: 5.52 MB / 334.1 MB
Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003913/0.1131, allocations: 251.9 kB / 469.4 MB, free: 5.27 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1131, allocations: 8.062 kB / 469.4 MB, free: 5.262 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1131, allocations: 4 kB / 469.4 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1132, allocations: 4 kB / 469.4 MB, free: 5.254 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.1134, allocations: 55.91 kB / 469.5 MB, free: 5.199 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.1134, allocations: 4 kB / 469.5 MB, free: 5.195 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.48e-05/0.1135, allocations: 15.89 kB / 469.5 MB, free: 5.18 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.1135, allocations: 16 kB / 469.5 MB, free: 5.164 MB / 334.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         intervalMeasure.w:DISCRETE(flow=false fixed = true )  \"Sensed speed\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 9
 * Number of states: 0 ()
 * Number of discrete variables: 10 (intervalMeasure.last_time,$PRE.intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,intervalMeasure.prev_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.next_phi,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (38):
 * Single equations (assignments): 38
 * Array equations: 0
 * Algorithm blocks: 0
 * 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.0001936/0.1137, allocations: 145.7 kB / 469.7 MB, free: 5.012 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.1137, allocations: 11.95 kB / 469.7 MB, free: 5 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.146e-05/0.1138, allocations: 20.94 kB / 469.7 MB, free: 4.977 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1138, allocations: 3.984 kB / 469.7 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1138, allocations: 0 / 469.7 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.1138, allocations: 7.922 kB / 469.7 MB, free: 4.965 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008766/0.1147, allocations: 0.5938 MB / 470.3 MB, free: 4.316 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1147, allocations: 0 / 470.3 MB, free: 4.316 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.1149, allocations: 51.91 kB / 470.3 MB, free: 4.266 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.1149, allocations: 3.938 kB / 470.3 MB, free: 4.262 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.1149, allocations: 8 kB / 470.4 MB, free: 4.254 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1149, allocations: 0 / 470.4 MB, free: 4.254 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1149, allocations: 0 / 470.4 MB, free: 4.254 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000512/0.1154, allocations: 389.1 kB / 470.7 MB, free: 3.852 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.34e-05/0.1155, allocations: 15.89 kB / 470.7 MB, free: 3.836 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1155, allocations: 4 kB / 470.8 MB, free: 3.832 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1156, allocations: 8 kB / 470.8 MB, free: 3.824 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/0.1156, allocations: 16.02 kB / 470.8 MB, free: 3.809 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.1157, allocations: 11.98 kB / 470.8 MB, free: 3.797 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.831e-05/0.1157, allocations: 99.2 kB / 470.9 MB, free: 3.699 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.1157, allocations: 0 / 470.9 MB, free: 3.699 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003048/0.116, allocations: 52 kB / 470.9 MB, free: 3.648 MB / 334.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w)
 * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time)
 * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (24):
 * Single equations (assignments): 20
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 4
 * 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.0001229/0.1162, allocations: 109.5 kB / 471 MB, free: 3.535 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.00032/0.1165, allocations: 175.7 kB / 471.2 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1165, allocations: 0 / 471.2 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.1166, allocations: 79.84 kB / 471.3 MB, free: 3.285 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.117, allocations: 12.62 kB / 471.3 MB, free: 3.273 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.1181, allocations: 0.5939 MB / 471.9 MB, free: 2.645 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.1185, allocations: 0.7284 MB / 472.6 MB, free: 1.891 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 5.892e-05/0.1185, allocations: 21.62 kB / 472.6 MB, free: 1.871 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.1186, allocations: 15.44 kB / 472.7 MB, free: 1.855 MB / 334.1 MB
Notification: Performance of SimCode: time 3.5e-07/0.1186, allocations: 7.938 kB / 472.7 MB, free: 1.848 MB / 334.1 MB
Notification: Performance of Templates: time 0.005016/0.1236, allocations: 1.755 MB / 474.4 MB, free: 124 kB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile [Timeout 660]
(rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.911673640832305]
Failed to read output from testmodel.py, exit status != 0:
0.13196477945894003 0.14761659700000002 0.038093895
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f0665b397b0>