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.001387/0.001387, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001475/0.001475, allocations: 214 kB / 23.01 MB, free: 4.566 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.383/1.383, allocations: 207.6 MB / 233.8 MB, free: 9.996 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.05739/0.05739, allocations: 8.19 MB / 294.2 MB, free: 13.66 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.002473/0.002473, allocations: 65.25 kB / 411.7 MB, free: 46.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06674/0.06921, allocations: 50.94 MB / 462.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003431/0.07264, allocations: 1.997 MB / 464.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.07384, allocations: 0.6242 MB / 465.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.07395, allocations: 4 kB / 465.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.162e-05/0.07404, allocations: 27.72 kB / 465.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.07423, allocations: 47.55 kB / 465.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.07449, allocations: 63.88 kB / 465.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002964/0.07479, allocations: 227.1 kB / 465.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.07497, allocations: 86.28 kB / 465.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.07523, allocations: 79.78 kB / 465.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.07539, allocations: 95.61 kB / 465.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.07542, allocations: 20 kB / 465.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.598e-05/0.07546, allocations: 20 kB / 465.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.07552, allocations: 47.84 kB / 466 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.07563, allocations: 95.59 kB / 466.1 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.07594, allocations: 235.1 kB / 466.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.07594, allocations: 0 / 466.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.61e-07/0.07595, allocations: 8 kB / 466.3 MB, free: 9.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.07595, allocations: 0 / 466.3 MB, free: 9.289 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.0007593/0.07671, allocations: 431.7 kB / 466.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.07675, allocations: 11.98 kB / 466.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.09e-05/0.07684, allocations: 28.73 kB / 466.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.07698, allocations: 126.3 kB / 466.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/0.07702, allocations: 12.75 kB / 466.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.07707, allocations: 28.33 kB / 466.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.07741, allocations: 186.4 kB / 467.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.07742, allocations: 0 / 467.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.07745, allocations: 15.98 kB / 467.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.07746, allocations: 4 kB / 467.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.07771, allocations: 113.1 kB / 467.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.07898, allocations: 0.6553 MB / 467.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.07934, allocations: 146.5 kB / 468 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.0796, allocations: 104.9 kB / 468.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.07961, allocations: 3.938 kB / 468.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.07991, allocations: 178.9 kB / 468.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.07991, allocations: 0 / 468.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001409/0.08132, allocations: 0.7224 MB / 469 MB, free: 6.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.08141, allocations: 140.5 kB / 469.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.08156, allocations: 139.3 kB / 469.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.08159, allocations: 29.7 kB / 469.3 MB, free: 5.984 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.658e-05/0.08168, allocations: 140.7 kB / 469.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.407e-05/0.08176, allocations: 87.31 kB / 469.6 MB, free: 5.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.08185, allocations: 57.7 kB / 469.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.082, allocations: 322.8 kB / 469.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.08214, allocations: 64.3 kB / 470 MB, free: 5.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.08234, allocations: 128.5 kB / 470.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.08269, allocations: 272.2 kB / 470.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.0827, allocations: 4 kB / 470.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004759/0.08317, allocations: 288.2 kB / 470.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.852e-05/0.08323, allocations: 33.64 kB / 470.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.08324, allocations: 7.938 kB / 470.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.08326, allocations: 4.25 kB / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.0835, allocations: 67.91 kB / 470.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.08351, allocations: 4.062 kB / 470.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.08362, allocations: 15.95 kB / 470.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.08364, allocations: 8 kB / 470.8 MB, free: 4.402 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.0002411/0.08388, allocations: 179.4 kB / 471 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.08391, allocations: 19.89 kB / 471 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.08395, allocations: 20.86 kB / 471 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.08396, allocations: 8 kB / 471 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.08396, allocations: 0 / 471 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.08397, allocations: 0 / 471 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.08504, allocations: 0.6684 MB / 471.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.08505, allocations: 8 kB / 471.7 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.08526, allocations: 43.91 kB / 471.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.08527, allocations: 4.062 kB / 471.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.08529, allocations: 8 kB / 471.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.08529, allocations: 4 kB / 471.8 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.08529, allocations: 0 / 471.8 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.08597, allocations: 466.6 kB / 472.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.622e-05/0.08599, allocations: 15.94 kB / 472.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.08603, allocations: 19.94 kB / 472.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.08616, allocations: 4 kB / 472.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.08621, allocations: 15.97 kB / 472.3 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.08623, allocations: 15.94 kB / 472.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.543e-05/0.08631, allocations: 99.2 kB / 472.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.08631, allocations: 0 / 472.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.08667, allocations: 56 kB / 472.4 MB, free: 2.656 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.0001169/0.08679, allocations: 114.1 kB / 472.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004173/0.08721, allocations: 239.5 kB / 472.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.08721, allocations: 0 / 472.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.0874, allocations: 151.3 kB / 472.9 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.08769, allocations: 12 kB / 472.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.08885, allocations: 0.6304 MB / 473.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.08922, allocations: 0.7397 MB / 474.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.875e-05/0.08927, allocations: 15.44 kB / 474.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.08927, allocations: 0 / 474.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of Templates: time 0.004588/0.09385, allocations: 2.153 MB / 476.5 MB, free: 14.52 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: 6.817805113969371] Failed to read output from testmodel.py, exit status != 0: 0.10172136500477791 0.11851951000000001 0.039321062000000004 Calling exit ...