Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001487/0.001487, 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.001873/0.001873, allocations: 190.1 kB / 22.22 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.696/1.696, 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.07711/0.07711, allocations: 8.19 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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold")
translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [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.002139/0.002139, allocations: 72.2 kB / 410.9 MB, free: 46.65 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09435/0.09649, allocations: 50.93 MB / 461.8 MB, free: 13.02 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003393/0.09988, allocations: 1.965 MB / 463.8 MB, free: 11.04 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0005556/0.1004, allocations: 235.9 kB / 464 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.259e-05/0.1005, allocations: 8 kB / 464 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 7.665e-05/0.1006, allocations: 23.72 kB / 464.1 MB, free: 10.77 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.1007, allocations: 47.56 kB / 464.1 MB, free: 10.73 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.101, allocations: 47.92 kB / 464.2 MB, free: 10.68 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002382/0.1012, allocations: 191.1 kB / 464.3 MB, free: 10.49 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.1014, allocations: 78.23 kB / 464.4 MB, free: 10.42 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.864e-05/0.1015, allocations: 75.78 kB / 464.5 MB, free: 10.34 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1017, allocations: 75.7 kB / 464.6 MB, free: 10.27 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.1017, allocations: 16 kB / 464.6 MB, free: 10.25 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.641e-05/0.1018, allocations: 24 kB / 464.6 MB, free: 10.23 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.536e-05/0.1018, allocations: 43.83 kB / 464.6 MB, free: 10.19 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1019, allocations: 99.59 kB / 464.7 MB, free: 10.09 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1022, allocations: 195.2 kB / 464.9 MB, free: 9.898 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1022, allocations: 4 kB / 464.9 MB, free: 9.895 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.994e-06/0.1022, allocations: 4 kB / 464.9 MB, free: 9.891 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.236e-06/0.1022, allocations: 0 / 464.9 MB, free: 9.891 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: 46
 * Number of variables: 46
Notification: Performance of Generate backend data structure: time 0.0008188/0.1031, allocations: 386 kB / 465.3 MB, free: 9.477 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.1031, allocations: 15.98 kB / 465.3 MB, free: 9.461 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.59e-05/0.1032, allocations: 24.78 kB / 465.4 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.1033, allocations: 122.4 kB / 465.5 MB, free: 9.293 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1033, allocations: 12.75 kB / 465.5 MB, free: 9.281 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.1034, allocations: 24.33 kB / 465.5 MB, free: 9.258 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.1037, allocations: 161.2 kB / 465.7 MB, free: 9.098 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1038, allocations: 12.06 kB / 465.7 MB, free: 9.086 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.1038, allocations: 7.938 kB / 465.7 MB, free: 9.078 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.1038, allocations: 4 kB / 465.7 MB, free: 9.074 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.104, allocations: 115.7 kB / 465.8 MB, free: 8.961 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1052, allocations: 0.6339 MB / 466.4 MB, free: 8.27 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.1056, allocations: 134.5 kB / 466.6 MB, free: 8.129 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002067/0.1058, allocations: 84.19 kB / 466.7 MB, free: 8.047 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.1058, allocations: 8 kB / 466.7 MB, free: 8.039 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.106, allocations: 91.31 kB / 466.7 MB, free: 7.938 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.106, allocations: 0 / 466.7 MB, free: 7.938 MB / 334.1 MB
Notification: Performance of matching and sorting (n=18): time 0.0009344/0.107, allocations: 451.1 kB / 467.2 MB, free: 7.465 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.107, allocations: 55.41 kB / 467.2 MB, free: 7.398 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.1071, allocations: 129.6 kB / 467.4 MB, free: 7.262 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.1072, allocations: 25.7 kB / 467.4 MB, free: 7.23 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.105e-05/0.1073, allocations: 144.2 kB / 467.5 MB, free: 7.082 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.95e-05/0.1073, allocations: 71.41 kB / 467.6 MB, free: 7.012 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.1074, allocations: 45.7 kB / 467.7 MB, free: 6.961 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001477/0.1075, allocations: 326.8 kB / 468 MB, free: 6.633 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.758e-05/0.1076, allocations: 43.98 kB / 468 MB, free: 6.59 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.1078, allocations: 102.8 kB / 468.1 MB, free: 6.465 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.108, allocations: 166.7 kB / 468.3 MB, free: 6.277 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.108, allocations: 0 / 468.3 MB, free: 6.277 MB / 334.1 MB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003266/0.1083, allocations: 213.2 kB / 468.5 MB, free: 6.062 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1084, allocations: 4 kB / 468.5 MB, free: 6.059 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1084, allocations: 4 kB / 468.5 MB, free: 6.055 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.1084, allocations: 4.219 kB / 468.5 MB, free: 6.051 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.1086, allocations: 47.92 kB / 468.5 MB, free: 6.004 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.1086, allocations: 7.984 kB / 468.6 MB, free: 5.996 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.471e-05/0.1087, allocations: 8 kB / 468.6 MB, free: 5.988 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1087, allocations: 12.08 kB / 468.6 MB, free: 5.977 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 8
 * Number of states: 0 ()
 * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (29):
 * Single equations (assignments): 29
 * 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.0001633/0.1088, allocations: 133.8 kB / 468.7 MB, free: 5.836 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.326e-05/0.1089, allocations: 11.89 kB / 468.7 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.1089, allocations: 16.78 kB / 468.7 MB, free: 5.805 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1089, allocations: 7.938 kB / 468.7 MB, free: 5.797 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1089, allocations: 0 / 468.7 MB, free: 5.797 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1089, allocations: 3.984 kB / 468.7 MB, free: 5.793 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.1096, allocations: 485.5 kB / 469.2 MB, free: 5.27 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1096, allocations: 0 / 469.2 MB, free: 5.27 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.1098, allocations: 43.91 kB / 469.3 MB, free: 5.227 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1098, allocations: 0 / 469.3 MB, free: 5.227 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1098, allocations: 8 kB / 469.3 MB, free: 5.219 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1098, allocations: 0 / 469.3 MB, free: 5.219 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1098, allocations: 4 kB / 469.3 MB, free: 5.215 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.1102, allocations: 305.6 kB / 469.6 MB, free: 4.902 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.1102, allocations: 7.953 kB / 469.6 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.1103, allocations: 0 / 469.6 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.645e-05/0.1103, allocations: 4 kB / 469.6 MB, free: 4.891 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.1104, allocations: 12.02 kB / 469.6 MB, free: 4.879 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1104, allocations: 11.94 kB / 469.6 MB, free: 4.867 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.422e-05/0.1105, allocations: 103.2 kB / 469.7 MB, free: 4.766 MB / 334.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.1105, allocations: 0 / 469.7 MB, free: 4.766 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.000267/0.1107, allocations: 36 kB / 469.7 MB, free: 4.73 MB / 334.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi)
 * Number of discrete variables: 2 ($whenCondition1,sampleHold.w)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (18):
 * Single equations (assignments): 17
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 1
 * 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.0001086/0.1108, allocations: 103.2 kB / 469.8 MB, free: 4.621 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.000247/0.1111, allocations: 135.7 kB / 470 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1111, allocations: 0 / 470 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.1112, allocations: 52.36 kB / 470 MB, free: 4.438 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.1114, allocations: 12.94 kB / 470 MB, free: 4.426 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1125, allocations: 0.5574 MB / 470.6 MB, free: 3.84 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.1129, allocations: 0.7279 MB / 471.3 MB, free: 3.082 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 5.104e-05/0.1129, allocations: 13.42 kB / 471.3 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.492e-05/0.113, allocations: 15.44 kB / 471.3 MB, free: 3.055 MB / 334.1 MB
Notification: Performance of SimCode: time 3e-07/0.113, allocations: 0 / 471.3 MB, free: 3.055 MB / 334.1 MB
Notification: Performance of Templates: time 0.004155/0.1171, allocations: 1.257 MB / 472.6 MB, free: 1.805 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660]
(rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.986882438883185]
Failed to read output from testmodel.py, exit status != 0:
0.12462558597326279 0.139669805 0.034425817000000004
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f9f151e17b0>