Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.001529/0.001529, 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.001844/0.001844, allocations: 191.7 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.553/1.553, allocations: 207.6 MB / 233 MB, free: 10.03 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.05019/0.05019, allocations: 8.195 MB / 293.4 MB, free: 13.69 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.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter")
translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") [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.002138/0.002138, allocations: 75.08 kB / 410.9 MB, free: 46.68 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1105, allocations: 50.93 MB / 461.8 MB, free: 13.02 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003827/0.1144, allocations: 1.989 MB / 463.8 MB, free: 11.02 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001209/0.1156, allocations: 0.6243 MB / 464.4 MB, free: 10.39 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.663e-05/0.1157, allocations: 7.938 kB / 464.5 MB, free: 10.38 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 7.948e-05/0.1157, allocations: 23.72 kB / 464.5 MB, free: 10.36 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.1159, allocations: 51.55 kB / 464.5 MB, free: 10.3 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.1162, allocations: 59.94 kB / 464.6 MB, free: 10.25 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000308/0.1165, allocations: 227.1 kB / 464.8 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.1167, allocations: 78.3 kB / 464.9 MB, free: 9.949 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.1169, allocations: 87.7 kB / 465 MB, free: 9.863 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.1171, allocations: 95.61 kB / 465.1 MB, free: 9.77 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.1171, allocations: 20 kB / 465.1 MB, free: 9.75 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.671e-05/0.1171, allocations: 24 kB / 465.1 MB, free: 9.727 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.479e-05/0.1172, allocations: 43.84 kB / 465.1 MB, free: 9.684 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1173, allocations: 99.59 kB / 465.2 MB, free: 9.586 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.1177, allocations: 235.1 kB / 465.5 MB, free: 9.355 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1177, allocations: 3.938 kB / 465.5 MB, free: 9.352 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.853e-06/0.1177, allocations: 4 kB / 465.5 MB, free: 9.348 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.509e-05/0.1177, allocations: 0 / 465.5 MB, free: 9.348 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.000868/0.1185, allocations: 431.7 kB / 465.9 MB, free: 8.887 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.1186, allocations: 15.98 kB / 465.9 MB, free: 8.871 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.163e-05/0.1187, allocations: 20.8 kB / 465.9 MB, free: 8.852 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1188, allocations: 122.4 kB / 466.1 MB, free: 8.707 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.1188, allocations: 24.62 kB / 466.1 MB, free: 8.684 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.1189, allocations: 32.31 kB / 466.1 MB, free: 8.652 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.1193, allocations: 182.4 kB / 466.3 MB, free: 8.469 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1193, allocations: 0 / 466.3 MB, free: 8.469 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.1193, allocations: 12 kB / 466.3 MB, free: 8.457 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.1193, allocations: 4 kB / 466.3 MB, free: 8.453 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.1196, allocations: 113.1 kB / 466.4 MB, free: 8.344 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.1209, allocations: 0.6553 MB / 467.1 MB, free: 7.637 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1213, allocations: 150.5 kB / 467.2 MB, free: 7.48 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.1215, allocations: 104.9 kB / 467.3 MB, free: 7.375 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1216, allocations: 7.938 kB / 467.3 MB, free: 7.367 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.1219, allocations: 174.9 kB / 467.5 MB, free: 7.172 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.1219, allocations: 0 / 467.5 MB, free: 7.172 MB / 334.1 MB
Notification: Performance of matching and sorting (n=25): time 0.001414/0.1233, allocations: 0.7225 MB / 468.2 MB, free: 6.387 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.1235, allocations: 140.5 kB / 468.4 MB, free: 6.219 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1236, allocations: 137.7 kB / 468.5 MB, free: 6.074 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.1236, allocations: 33.7 kB / 468.5 MB, free: 6.035 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1237, allocations: 140.6 kB / 468.7 MB, free: 5.891 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.038e-05/0.1238, allocations: 83.33 kB / 468.7 MB, free: 5.809 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.91e-05/0.1239, allocations: 61.69 kB / 468.8 MB, free: 5.742 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001664/0.1241, allocations: 322.8 kB / 469.1 MB, free: 5.418 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.1242, allocations: 64.3 kB / 469.2 MB, free: 5.352 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.1244, allocations: 128.5 kB / 469.3 MB, free: 5.199 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.1247, allocations: 272.2 kB / 469.6 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1247, allocations: 0 / 469.6 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.000461/0.1252, allocations: 288.2 kB / 469.9 MB, free: 4.602 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.1252, allocations: 33.7 kB / 469.9 MB, free: 4.562 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.557e-06/0.1253, allocations: 3.938 kB / 469.9 MB, free: 4.559 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.1253, allocations: 4 kB / 469.9 MB, free: 4.555 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.1255, allocations: 68.16 kB / 470 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.1255, allocations: 11.88 kB / 470 MB, free: 4.477 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.799e-05/0.1256, allocations: 11.95 kB / 470 MB, free: 4.465 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.1256, allocations: 12 kB / 470 MB, free: 4.453 MB / 334.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         pulseCounter.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: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (37):
 * Single equations (assignments): 36
 * 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.0002495/0.1259, allocations: 179.4 kB / 470.2 MB, free: 4.262 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.1259, allocations: 11.95 kB / 470.2 MB, free: 4.25 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.913e-05/0.126, allocations: 24.8 kB / 470.2 MB, free: 4.223 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.126, allocations: 8 kB / 470.2 MB, free: 4.215 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.126, allocations: 0 / 470.2 MB, free: 4.215 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.126, allocations: 3.984 kB / 470.2 MB, free: 4.211 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.127, allocations: 0.6723 MB / 470.9 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.127, allocations: 0 / 470.9 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.1272, allocations: 43.97 kB / 470.9 MB, free: 3.434 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1272, allocations: 8.062 kB / 470.9 MB, free: 3.426 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.1272, allocations: 8 kB / 471 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1272, allocations: 0 / 471 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1273, allocations: 3.938 kB / 471 MB, free: 3.414 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.128, allocations: 466.6 kB / 471.4 MB, free: 2.93 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.128, allocations: 11.91 kB / 471.4 MB, free: 2.918 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.128, allocations: 16.03 kB / 471.4 MB, free: 2.902 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.1282, allocations: 8 kB / 471.5 MB, free: 2.895 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.1282, allocations: 11.98 kB / 471.5 MB, free: 2.883 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/0.1283, allocations: 11.98 kB / 471.5 MB, free: 2.871 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 8.219e-05/0.1284, allocations: 100.8 kB / 471.6 MB, free: 2.773 MB / 334.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.1284, allocations: 4 kB / 471.6 MB, free: 2.77 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003202/0.1287, allocations: 52 kB / 471.6 MB, free: 2.719 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: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count)
 * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (19):
 * Single equations (assignments): 18
 * 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 Backend phase and start with SimCode phase: time 0.0001547/0.1288, allocations: 116.2 kB / 471.7 MB, free: 2.602 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004774/0.1293, allocations: 235.5 kB / 472 MB, free: 2.359 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1293, allocations: 0 / 472 MB, free: 2.359 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.1295, allocations: 155.2 kB / 472.1 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.1298, allocations: 12 kB / 472.1 MB, free: 2.184 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.1313, allocations: 0.6105 MB / 472.7 MB, free: 1.543 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005849/0.1319, allocations: 0.7358 MB / 473.5 MB, free: 0.7812 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001057/0.132, allocations: 17.48 kB / 473.5 MB, free: 0.7617 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.81e-05/0.132, allocations: 15.44 kB / 473.5 MB, free: 0.7461 MB / 334.1 MB
Notification: Performance of SimCode: time 6.91e-07/0.132, allocations: 3.938 kB / 473.5 MB, free: 0.7422 MB / 334.1 MB
Notification: Performance of Templates: time 0.006302/0.1383, allocations: 1.854 MB / 475.4 MB, free: 14.89 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile [Timeout 660]
(rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.914037396200001]
Failed to read output from testmodel.py, exit status != 0:
0.14747698046267033 0.162747991 0.041963842
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f7d16d697b0>