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.001192/0.001192, allocations: 176.2 kB / 7.652 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.178/2.178, allocations: 194.3 MB / 202.4 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0378/0.0378, allocations: 7.913 MB / 255.2 MB, free: 8.242 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.001782/0.001782, allocations: 122.3 kB / 301.9 MB, free: 32.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.112e-05/2.115e-05, allocations: 3.984 kB / 354.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.372, allocations: 46.19 MB / 400.5 MB, free: 46.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.5107, allocations: 71.96 MB / 472.4 MB, free: 2.945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5111, allocations: 51.89 kB / 472.5 MB, free: 2.898 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008342/0.5195, allocations: 2.873 MB / 475.4 MB, free: 92 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5195, allocations: 1.062 kB / 475.4 MB, free: 92 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.5195, allocations: 4 kB / 475.4 MB, free: 88 kB / 314.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.0007505/0.5203, allocations: 458.8 kB / 475.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.5204, allocations: 8.781 kB / 475.8 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.82e-05/0.5205, allocations: 27.67 kB / 475.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.5207, allocations: 186.1 kB / 476 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.5208, allocations: 8 kB / 476 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.5208, allocations: 12 kB / 476.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002455/0.5211, allocations: 104.7 kB / 476.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.5214, allocations: 150.3 kB / 476.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.5214, allocations: 0 / 476.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.5215, allocations: 3.609 kB / 476.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.5215, allocations: 4 kB / 476.3 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.5228, allocations: 0.6793 MB / 477 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.5233, allocations: 235.8 kB / 477.2 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.5235, allocations: 103.6 kB / 477.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.5236, allocations: 4.766 kB / 477.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.5239, allocations: 182.7 kB / 477.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.5239, allocations: 1.219 kB / 477.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.00125/0.5252, allocations: 0.575 MB / 478.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.5253, allocations: 140.4 kB / 478.2 MB, free: 13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.5254, allocations: 117 kB / 478.3 MB, free: 12.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.5255, allocations: 29.7 kB / 478.4 MB, free: 12.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.5256, allocations: 136.2 kB / 478.5 MB, free: 12.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.627e-05/0.5257, allocations: 82.84 kB / 478.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-06/0.5257, allocations: 0 / 478.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.5259, allocations: 326.8 kB / 478.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.5261, allocations: 52.33 kB / 478.9 MB, free: 12.24 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.5262, allocations: 127.5 kB / 479.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.5264, allocations: 73.64 kB / 479.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5264, allocations: 4 kB / 479.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000385/0.5268, allocations: 227.5 kB / 479.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.5269, allocations: 33.7 kB / 479.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.5269, allocations: 4 kB / 479.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.5269, allocations: 5.5 kB / 479.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.5272, allocations: 64.16 kB / 479.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.5272, allocations: 7.938 kB / 479.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.5273, allocations: 9.25 kB / 479.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.5273, allocations: 12 kB / 479.5 MB, free: 11.66 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.000229/0.5276, allocations: 154.9 kB / 479.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.5276, allocations: 15.81 kB / 479.7 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.5277, allocations: 20.73 kB / 479.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.5277, allocations: 0 / 479.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.5277, allocations: 4 kB / 479.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.5277, allocations: 4 kB / 479.7 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009519/0.5287, allocations: 0.6101 MB / 480.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.5287, allocations: 0 / 480.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.5289, allocations: 39.98 kB / 480.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.529, allocations: 3.844 kB / 480.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.529, allocations: 11.98 kB / 480.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.529, allocations: 0 / 480.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.529, allocations: 0 / 480.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006546/0.5297, allocations: 428.2 kB / 480.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.255e-05/0.5298, allocations: 94.02 kB / 480.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.5298, allocations: 8 kB / 480.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.5299, allocations: 4 kB / 480.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.53, allocations: 20.02 kB / 480.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.53, allocations: 4 kB / 480.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.584e-05/0.5301, allocations: 101.5 kB / 481 MB, free: 10.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5301, allocations: 0 / 481 MB, free: 10.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.5304, allocations: 44 kB / 481 MB, free: 10.01 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.0001913/0.5306, allocations: 120 kB / 481.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003706/0.531, allocations: 231.3 kB / 481.4 MB, free: 9.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.531, allocations: 7.938 kB / 481.4 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.5313, allocations: 180.5 kB / 481.6 MB, free: 9.445 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.5315, allocations: 20.44 kB / 481.6 MB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.5325, allocations: 0.5053 MB / 482.1 MB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.533, allocations: 0.736 MB / 482.8 MB, free: 8.164 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.598e-05/0.5331, allocations: 17.84 kB / 482.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.347e-05/0.5331, allocations: 19.44 kB / 482.9 MB, free: 8.129 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5331, allocations: 0 / 482.9 MB, free: 8.129 MB / 330.7 MB Notification: Performance of Templates: time 0.004727/0.5379, allocations: 1.441 MB / 484.3 MB, free: 6.746 MB / 330.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)