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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002757/0.002758, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.169/2.169, allocations: 194.3 MB / 207.5 MB, free: 3.461 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03612/0.03612, allocations: 7.907 MB / 260.4 MB, free: 13.78 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001961/0.001961, allocations: 112.4 kB / 307.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.336e-05/6.339e-05, allocations: 7.984 kB / 361.3 MB, free: 8.699 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3535, allocations: 46.19 MB / 407.4 MB, free: 67.06 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.4775, allocations: 72.63 MB / 480.1 MB, free: 10.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.4778, allocations: 47.98 kB / 480.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009124/0.487, allocations: 2.899 MB / 483 MB, free: 7.383 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.487, allocations: 0 / 483 MB, free: 7.383 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.4871, allocations: 4 kB / 483 MB, free: 7.379 MB / 330.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.0009979/0.4881, allocations: 460.3 kB / 483.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.536e-05/0.4882, allocations: 15.95 kB / 483.5 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.4883, allocations: 35.67 kB / 483.5 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.4886, allocations: 174.9 kB / 483.7 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.4887, allocations: 12.38 kB / 483.7 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-05/0.4888, allocations: 24 kB / 483.7 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.4893, allocations: 170.1 kB / 483.9 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.4893, allocations: 7.906 kB / 483.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.4893, allocations: 4 kB / 483.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.4894, allocations: 11.98 kB / 483.9 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.4897, allocations: 109.1 kB / 484 MB, free: 6.281 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.4914, allocations: 0.7396 MB / 484.8 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.4919, allocations: 235.7 kB / 485 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002998/0.4923, allocations: 117 kB / 485.1 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.4923, allocations: 0 / 485.1 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003853/0.4927, allocations: 179.3 kB / 485.3 MB, free: 4.898 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.346e-06/0.4927, allocations: 0 / 485.3 MB, free: 4.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001507/0.4942, allocations: 0.7299 MB / 486 MB, free: 4.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.4944, allocations: 140.5 kB / 486.1 MB, free: 3.922 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4945, allocations: 125 kB / 486.3 MB, free: 3.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.4945, allocations: 33.7 kB / 486.3 MB, free: 3.754 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.4947, allocations: 136.2 kB / 486.4 MB, free: 3.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.876e-05/0.4948, allocations: 82.78 kB / 486.5 MB, free: 3.535 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.4948, allocations: 8 kB / 486.5 MB, free: 3.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.495, allocations: 327.4 kB / 486.8 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.4951, allocations: 60.33 kB / 486.9 MB, free: 3.137 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.4953, allocations: 124.6 kB / 487 MB, free: 2.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.4955, allocations: 106.8 kB / 487.1 MB, free: 2.879 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4955, allocations: 0 / 487.1 MB, free: 2.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004771/0.496, allocations: 288.1 kB / 487.4 MB, free: 2.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.078e-05/0.496, allocations: 33.7 kB / 487.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4961, allocations: 256 / 487.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.4961, allocations: 8 kB / 487.5 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.4963, allocations: 63.91 kB / 487.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.4963, allocations: 4 kB / 487.5 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.4965, allocations: 8 kB / 487.5 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.4965, allocations: 16 kB / 487.5 MB, free: 2.449 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(fixed = false ) "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,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.4967, allocations: 163.5 kB / 487.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.4968, allocations: 15.81 kB / 487.7 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.342e-05/0.4968, allocations: 32.66 kB / 487.7 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4969, allocations: 4 kB / 487.8 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.4969, allocations: 0 / 487.8 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4969, allocations: 3.938 kB / 487.8 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.498, allocations: 0.6969 MB / 488.5 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.498, allocations: 3.938 kB / 488.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.4983, allocations: 35.98 kB / 488.5 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/0.4983, allocations: 4 kB / 488.5 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.4983, allocations: 11.95 kB / 488.5 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.4983, allocations: 4 kB / 488.5 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4983, allocations: 0 / 488.5 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007105/0.499, allocations: 484.9 kB / 489 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.4991, allocations: 88.92 kB / 489.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.4992, allocations: 8 kB / 489.1 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.4993, allocations: 16 kB / 489.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.353e-05/0.4994, allocations: 27.97 kB / 489.1 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.4995, allocations: 4 kB / 489.1 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.497e-05/0.4996, allocations: 106.9 kB / 489.2 MB, free: 0.625 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4996, allocations: 0 / 489.2 MB, free: 0.625 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003503/0.4999, allocations: 55.94 kB / 489.3 MB, free: 0.5703 MB / 330.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.w,idealSensor.flange.phi) * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001994/0.5001, allocations: 115.1 kB / 489.4 MB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000425/0.5006, allocations: 252.3 kB / 489.6 MB, free: 196 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.5006, allocations: 0 / 489.6 MB, free: 196 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.5008, allocations: 191.4 kB / 489.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.501, allocations: 16.5 kB / 489.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.5022, allocations: 0.5161 MB / 490.4 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.5026, allocations: 0.7324 MB / 491.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.48e-05/0.5027, allocations: 21.47 kB / 491.1 MB, free: 14.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.5028, allocations: 23.44 kB / 491.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5028, allocations: 0 / 491.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of Templates: time 0.005678/0.5085, allocations: 1.482 MB / 492.6 MB, free: 13.16 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (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)