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.001473/0.001473, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001013/0.001013, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 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 0.9281/0.9281, allocations: 158.6 MB / 185.9 MB, free: 2.809 MB / 170.7 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.05701/0.05701, allocations: 6.411 MB / 244.7 MB, free: 8.566 MB / 234.7 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: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 312 MB, free: 51.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.331e-05, allocations: 4 kB / 312 MB, free: 51.79 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003313/0.003337, allocations: 2.008 MB / 314 MB, free: 50.47 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.004466, allocations: 0.6053 MB / 314.6 MB, free: 50.06 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.004569, allocations: 4.594 kB / 314.6 MB, free: 50.06 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.914e-05/0.004648, allocations: 26.16 kB / 314.6 MB, free: 50.05 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.004815, allocations: 47.36 kB / 314.7 MB, free: 50.01 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.005064, allocations: 72.48 kB / 314.7 MB, free: 49.97 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002955/0.00536, allocations: 227.1 kB / 315 MB, free: 49.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.005545, allocations: 66 kB / 315 MB, free: 49.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.005804, allocations: 135.4 kB / 315.2 MB, free: 49.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.005961, allocations: 70.09 kB / 315.2 MB, free: 49.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.006004, allocations: 20.72 kB / 315.2 MB, free: 49.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.693e-05/0.006051, allocations: 21.38 kB / 315.3 MB, free: 49.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.666e-05/0.006098, allocations: 48.64 kB / 315.3 MB, free: 49.71 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/0.00619, allocations: 71.94 kB / 315.4 MB, free: 49.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.006418, allocations: 150 kB / 315.5 MB, free: 49.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.00642, allocations: 3 kB / 315.5 MB, free: 49.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.006421, allocations: 0 / 315.5 MB, free: 49.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.006426, allocations: 0 / 315.5 MB, free: 49.61 MB / 282.7 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.0006031/0.007029, allocations: 0.5335 MB / 316.1 MB, free: 49.13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.007064, allocations: 14.84 kB / 316.1 MB, free: 49.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.825e-05/0.007122, allocations: 36.09 kB / 316.1 MB, free: 49.11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.962e-05/0.007202, allocations: 128.3 kB / 316.2 MB, free: 48.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.007219, allocations: 18.38 kB / 316.3 MB, free: 48.96 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.007248, allocations: 27.42 kB / 316.3 MB, free: 48.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/0.007406, allocations: 159.2 kB / 316.4 MB, free: 48.86 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.007418, allocations: 5.516 kB / 316.4 MB, free: 48.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.007432, allocations: 11.12 kB / 316.5 MB, free: 48.84 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.00744, allocations: 8.953 kB / 316.5 MB, free: 48.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.189e-05/0.007522, allocations: 85.33 kB / 316.5 MB, free: 48.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006465/0.008168, allocations: 0.6243 MB / 317.2 MB, free: 48.19 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.008338, allocations: 146 kB / 317.3 MB, free: 48.03 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/0.008427, allocations: 107.3 kB / 317.4 MB, free: 47.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.008434, allocations: 0 / 317.4 MB, free: 47.92 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.008547, allocations: 204.2 kB / 317.6 MB, free: 47.69 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.192e-06/0.008548, allocations: 0 / 317.6 MB, free: 47.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006002/0.009148, allocations: 0.6884 MB / 318.3 MB, free: 46.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.009178, allocations: 140.5 kB / 318.4 MB, free: 46.76 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.062e-05/0.009229, allocations: 201.8 kB / 318.6 MB, free: 46.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.009239, allocations: 29.7 kB / 318.7 MB, free: 46.51 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.006e-05/0.009279, allocations: 179.4 kB / 318.8 MB, free: 46.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.009308, allocations: 87.3 kB / 318.9 MB, free: 46.24 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.009355, allocations: 67.28 kB / 319 MB, free: 46.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.47e-05/0.009399, allocations: 0.5 MB / 319.5 MB, free: 45.65 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.176e-05/0.009431, allocations: 58 kB / 319.6 MB, free: 45.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.858e-05/0.00949, allocations: 155.6 kB / 319.7 MB, free: 45.39 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.009601, allocations: 224.9 kB / 319.9 MB, free: 45.12 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.009602, allocations: 0 / 319.9 MB, free: 45.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001719/0.009774, allocations: 286.7 kB / 320.2 MB, free: 44.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.009793, allocations: 33.7 kB / 320.2 MB, free: 44.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.009798, allocations: 0 / 320.2 MB, free: 44.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.009808, allocations: 4 kB / 320.2 MB, free: 44.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.009935, allocations: 67.91 kB / 320.3 MB, free: 44.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.00994, allocations: 7.984 kB / 320.3 MB, free: 44.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.24e-05/0.009993, allocations: 15.94 kB / 320.3 MB, free: 44.69 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.01, allocations: 4 kB / 320.3 MB, free: 44.69 MB / 282.7 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.000111/0.01011, allocations: 224 kB / 320.6 MB, free: 44.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.01014, allocations: 23.91 kB / 320.6 MB, free: 44.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.01016, allocations: 16.94 kB / 320.6 MB, free: 44.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.01016, allocations: 4 kB / 320.6 MB, free: 44.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.01017, allocations: 0 / 320.6 MB, free: 44.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.01017, allocations: 7.922 kB / 320.6 MB, free: 44.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004163/0.01059, allocations: 0.6205 MB / 321.2 MB, free: 43.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01059, allocations: 0 / 321.2 MB, free: 43.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.01069, allocations: 51.98 kB / 321.3 MB, free: 43.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.01069, allocations: 0 / 321.3 MB, free: 43.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.01071, allocations: 15.92 kB / 321.3 MB, free: 43.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01071, allocations: 4 kB / 321.3 MB, free: 43.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01071, allocations: 0 / 321.3 MB, free: 43.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.01098, allocations: 0.5217 MB / 321.8 MB, free: 43.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.033e-05/0.01099, allocations: 7.953 kB / 321.8 MB, free: 43.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.01101, allocations: 11.94 kB / 321.8 MB, free: 43.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.926e-05/0.01107, allocations: 15.94 kB / 321.9 MB, free: 43.06 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.01111, allocations: 14.59 kB / 321.9 MB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.01112, allocations: 16 kB / 321.9 MB, free: 43.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.143e-05/0.01114, allocations: 140.7 kB / 322 MB, free: 42.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.01114, allocations: 0 / 322 MB, free: 42.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001893/0.01133, allocations: 56 kB / 322.1 MB, free: 42.84 MB / 282.7 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 6.49e-05/0.0114, allocations: 108.6 kB / 322.2 MB, free: 42.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.01155, allocations: 256.2 kB / 322.4 MB, free: 42.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-06/0.01155, allocations: 0.5 kB / 322.4 MB, free: 42.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.767e-05/0.01162, allocations: 167.8 kB / 322.6 MB, free: 42.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001664/0.01179, allocations: 23.98 kB / 322.6 MB, free: 42.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006043/0.01239, allocations: 0.5452 MB / 323.2 MB, free: 41.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.007e-05/0.01242, allocations: 79.98 kB / 323.2 MB, free: 41.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.271e-05/0.01245, allocations: 13.48 kB / 323.3 MB, free: 41.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.01252, allocations: 106.2 kB / 323.4 MB, free: 41.46 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01252, allocations: 0 / 323.4 MB, free: 41.46 MB / 282.7 MB Notification: Performance of Templates: time 0.002997/0.01552, allocations: 1.821 MB / 325.2 MB, free: 39.7 MB / 282.7 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=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7930595241487026]