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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 209.5 kB / 22.24 MB, free: 5.262 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.513/1.513, allocations: 207.7 MB / 233.1 MB, free: 9.789 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.06296/0.06296, allocations: 8.199 MB / 293.5 MB, free: 13.48 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.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.002388/0.002388, allocations: 73.28 kB / 410.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.08626, allocations: 50.93 MB / 461.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00326/0.08952, allocations: 1.91 MB / 463.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.09059, allocations: 0.5854 MB / 464.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.09066, allocations: 4 kB / 464.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.148e-05/0.09073, allocations: 23.72 kB / 464.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.09087, allocations: 51.56 kB / 464.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.09109, allocations: 63.86 kB / 464.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.09137, allocations: 223.1 kB / 464.7 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.09155, allocations: 74.3 kB / 464.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.09171, allocations: 87.77 kB / 464.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.09184, allocations: 79.61 kB / 465 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.09188, allocations: 20 kB / 465 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.09194, allocations: 24 kB / 465 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.09198, allocations: 39.8 kB / 465 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.0921, allocations: 95.64 kB / 465.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000287/0.09239, allocations: 235.1 kB / 465.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.09239, allocations: 0 / 465.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09239, allocations: 0 / 465.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.0924, allocations: 0 / 465.4 MB, free: 9.285 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.00072/0.09312, allocations: 435.7 kB / 465.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.09315, allocations: 11.98 kB / 465.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.09321, allocations: 24.8 kB / 465.8 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.09335, allocations: 126.3 kB / 465.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.09338, allocations: 20.75 kB / 466 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.09342, allocations: 24.33 kB / 466 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.09377, allocations: 212.1 kB / 466.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.09378, allocations: 7.875 kB / 466.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.09381, allocations: 12 kB / 466.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.09382, allocations: 4 kB / 466.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.09406, allocations: 142.8 kB / 466.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.09524, allocations: 0.5701 MB / 466.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.09561, allocations: 176.2 kB / 467.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.09589, allocations: 138.5 kB / 467.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.0959, allocations: 3.938 kB / 467.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003239/0.09623, allocations: 216.5 kB / 467.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.733e-06/0.09623, allocations: 0 / 467.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001371/0.0976, allocations: 0.7883 MB / 468.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.09771, allocations: 152.4 kB / 468.4 MB, free: 5.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.09784, allocations: 137.7 kB / 468.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.09787, allocations: 33.7 kB / 468.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.305e-05/0.09796, allocations: 136.7 kB / 468.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.32e-05/0.09804, allocations: 87.31 kB / 468.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.625e-05/0.09813, allocations: 61.66 kB / 468.8 MB, free: 5.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.09829, allocations: 322.8 kB / 469.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.09843, allocations: 90 kB / 469.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.09863, allocations: 166.1 kB / 469.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.09899, allocations: 264.2 kB / 469.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.09899, allocations: 0 / 469.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005847/0.09957, allocations: 326.1 kB / 470 MB, free: 4.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.09962, allocations: 41.69 kB / 470 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.09963, allocations: 4 kB / 470 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.09965, allocations: 7.938 kB / 470 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.09988, allocations: 55.91 kB / 470.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.09989, allocations: 4 kB / 470.1 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.934e-05/0.09999, allocations: 8 kB / 470.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.1, allocations: 16 kB / 470.1 MB, free: 4.113 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.0002264/0.1002, allocations: 179.5 kB / 470.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.1003, allocations: 15.91 kB / 470.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.09e-05/0.1003, allocations: 24.92 kB / 470.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1003, allocations: 3.938 kB / 470.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1003, allocations: 4 kB / 470.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.1003, allocations: 0 / 470.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.1014, allocations: 0.6356 MB / 471 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1014, allocations: 0 / 471 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.1016, allocations: 55.91 kB / 471 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1016, allocations: 0 / 471 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.1016, allocations: 8 kB / 471 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1016, allocations: 4 kB / 471 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1016, allocations: 80 / 471 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008644/0.1025, allocations: 0.5409 MB / 471.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.1025, allocations: 11.98 kB / 471.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.1025, allocations: 8 kB / 471.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.1027, allocations: 8 kB / 471.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.1027, allocations: 19.97 kB / 471.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.1027, allocations: 19.94 kB / 471.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.1028, allocations: 96.53 kB / 471.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1028, allocations: 0 / 471.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.1031, allocations: 52 kB / 471.8 MB, free: 2.32 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.0001301/0.1033, allocations: 112.6 kB / 471.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004679/0.1037, allocations: 294.9 kB / 472.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1037, allocations: 0 / 472.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.104, allocations: 185.6 kB / 472.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1042, allocations: 20 kB / 472.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1054, allocations: 0.6417 MB / 473 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.1055, allocations: 124.1 kB / 473.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.517e-05/0.1056, allocations: 17.47 kB / 473.2 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.1056, allocations: 19.44 kB / 473.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1056, allocations: 0 / 473.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of Templates: time 0.005422/0.111, allocations: 1.823 MB / 475 MB, free: 15 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.73964873328805] Failed to read output from testmodel.py, exit status != 0: 0.11916984058916569 0.13564129399999994 0.040049689 Calling exit ...