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.001586/0.001586, allocations: 113.5 kB / 17.08 MB, free: 5.988 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.001542/0.001542, allocations: 193.2 kB / 20.03 MB, free: 3.059 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.389/1.389, allocations: 205.1 MB / 227.9 MB, free: 4.371 MB / 174.1 MB " [Timeout remaining time 179] 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.05047/0.05047, allocations: 8.111 MB / 285.4 MB, free: 10.98 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.00217/0.00217, allocations: 75.89 kB / 396.1 MB, free: 6.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2346, allocations: 48.3 MB / 444.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002919/0.2376, allocations: 1.978 MB / 446.4 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009379/0.2385, allocations: 0.6167 MB / 447 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2387, allocations: 3.781 kB / 447 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.548e-05/0.2388, allocations: 25.41 kB / 447 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.2389, allocations: 53.23 kB / 447.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.2392, allocations: 63.62 kB / 447.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.2395, allocations: 224 kB / 447.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.2396, allocations: 103.2 kB / 447.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.2398, allocations: 86.47 kB / 447.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.24, allocations: 95.11 kB / 447.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.71e-05/0.24, allocations: 21.72 kB / 447.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.19e-05/0.2401, allocations: 20.47 kB / 447.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.372e-05/0.2401, allocations: 44.84 kB / 447.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.704e-05/0.2402, allocations: 98.48 kB / 447.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.2405, allocations: 230.8 kB / 448 MB, free: 6.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2405, allocations: 5.391 kB / 448 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2405, allocations: 0 / 448 MB, free: 6.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.2405, allocations: 0.5 kB / 448 MB, free: 6.414 MB / 318.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.0006757/0.2412, allocations: 0.4976 MB / 448.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.2413, allocations: 9.75 kB / 448.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.2413, allocations: 23.86 kB / 448.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2414, allocations: 190.8 kB / 448.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.2415, allocations: 17.38 kB / 448.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.2415, allocations: 27.53 kB / 448.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.2419, allocations: 188.2 kB / 449 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.2419, allocations: 0.5312 kB / 449 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.2419, allocations: 10.41 kB / 449 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.242, allocations: 8.938 kB / 449 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.2422, allocations: 113.9 kB / 449.1 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2432, allocations: 0.7176 MB / 449.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.2436, allocations: 245.9 kB / 450.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.2438, allocations: 115.7 kB / 450.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.2438, allocations: 1.375 kB / 450.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.244, allocations: 180.8 kB / 450.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.813e-06/0.244, allocations: 0 / 450.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001091/0.2451, allocations: 0.7888 MB / 451.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.2452, allocations: 144.3 kB / 451.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.023e-05/0.2453, allocations: 141.3 kB / 451.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.2453, allocations: 31.83 kB / 451.5 MB, free: 3.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.2454, allocations: 140.5 kB / 451.6 MB, free: 3.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.2454, allocations: 86.2 kB / 451.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-05/0.2455, allocations: 54.14 kB / 451.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.871e-05/0.2455, allocations: 324.6 kB / 452.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2457, allocations: 64.94 kB / 452.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.2458, allocations: 133.4 kB / 452.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.2461, allocations: 262 kB / 452.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2461, allocations: 0 / 452.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003665/0.2464, allocations: 292.5 kB / 452.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.2465, allocations: 34.59 kB / 452.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2465, allocations: 6.594 kB / 452.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.2465, allocations: 8.625 kB / 452.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.2467, allocations: 60.58 kB / 452.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2467, allocations: 8.922 kB / 452.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.2469, allocations: 13.73 kB / 452.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.2469, allocations: 18.03 kB / 452.9 MB, free: 2.676 MB / 318.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.0001466/0.247, allocations: 176.8 kB / 453.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.2471, allocations: 16.52 kB / 453.1 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.2471, allocations: 23.5 kB / 453.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2471, allocations: 3.406 kB / 453.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2471, allocations: 0.8438 kB / 453.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2471, allocations: 0.8906 kB / 453.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000782/0.2479, allocations: 0.7013 MB / 453.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2479, allocations: 1.375 kB / 453.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.2481, allocations: 44.98 kB / 453.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2482, allocations: 2.531 kB / 453.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.2482, allocations: 9.125 kB / 453.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.2482, allocations: 6.188 kB / 453.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2482, allocations: 1.344 kB / 453.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004867/0.2487, allocations: 466.2 kB / 454.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.928e-05/0.2487, allocations: 89.83 kB / 454.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.2488, allocations: 11.05 kB / 454.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.2489, allocations: 6.172 kB / 454.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.2489, allocations: 19.55 kB / 454.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.249, allocations: 13.22 kB / 454.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.521e-05/0.249, allocations: 102.7 kB / 454.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.249, allocations: 0 / 454.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.2494, allocations: 54.19 kB / 454.7 MB, free: 1.457 MB / 318.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 8.706e-05/0.2494, allocations: 116.1 kB / 454.8 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.2498, allocations: 250.1 kB / 455 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2498, allocations: 0 / 455 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.25, allocations: 196.5 kB / 455.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.2502, allocations: 16.89 kB / 455.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008716/0.2511, allocations: 0.6361 MB / 455.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.2513, allocations: 0.7353 MB / 456.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.2514, allocations: 19.75 kB / 456.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2514, allocations: 0 / 456.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of Templates: time 0.004538/0.2559, allocations: 2.13 MB / 458.8 MB, free: 15.14 MB / 334.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.453294968931004] Failed to read output from testmodel.py, exit status != 0: 0.26303318492136896 0.276011011 0.03282688099999994 Calling exit ...