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.001128/0.001128, allocations: 186 kB / 15.98 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.462/1.462, allocations: 194.2 MB / 210.9 MB, free: 2.352 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03788/0.03788, allocations: 8.112 MB / 263.3 MB, free: 12.64 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.00177/0.00177, allocations: 124.1 kB / 309.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.91 kB / 365.4 MB, free: 6.312 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2411, allocations: 45.26 MB / 410.7 MB, free: 66.84 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003624/0.2447, allocations: 2.022 MB / 412.7 MB, free: 64.8 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.2459, allocations: 0.5892 MB / 413.3 MB, free: 64.2 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.733e-05/0.246, allocations: 4 kB / 413.3 MB, free: 64.2 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.28e-05/0.2461, allocations: 23.84 kB / 413.3 MB, free: 64.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.2463, allocations: 39.67 kB / 413.3 MB, free: 64.14 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.2466, allocations: 51.89 kB / 413.4 MB, free: 64.09 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.2468, allocations: 211.1 kB / 413.6 MB, free: 63.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.2471, allocations: 82.72 kB / 413.7 MB, free: 63.8 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.2473, allocations: 79.78 kB / 413.8 MB, free: 63.72 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.2474, allocations: 91.61 kB / 413.8 MB, free: 63.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.2475, allocations: 16 kB / 413.9 MB, free: 63.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.18e-05/0.2475, allocations: 16 kB / 413.9 MB, free: 63.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.742e-05/0.2476, allocations: 39.84 kB / 413.9 MB, free: 63.56 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2477, allocations: 95.59 kB / 414 MB, free: 63.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.2479, allocations: 221.3 kB / 414.2 MB, free: 63.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.248, allocations: 0 / 414.2 MB, free: 63.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.248, allocations: 0 / 414.2 MB, free: 63.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.248, allocations: 0 / 414.2 MB, free: 63.25 MB / 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.0008384/0.2488, allocations: 0.4971 MB / 414.7 MB, free: 62.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.2489, allocations: 12.03 kB / 414.7 MB, free: 62.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.875e-05/0.249, allocations: 20.66 kB / 414.8 MB, free: 62.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2491, allocations: 192 kB / 414.9 MB, free: 62.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.2491, allocations: 20.73 kB / 415 MB, free: 62.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/0.2492, allocations: 24.38 kB / 415 MB, free: 62.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.2496, allocations: 182.2 kB / 415.2 MB, free: 62.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2496, allocations: 0 / 415.2 MB, free: 62.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.2497, allocations: 12 kB / 415.2 MB, free: 62.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2497, allocations: 4 kB / 415.2 MB, free: 62.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.25, allocations: 117.1 kB / 415.3 MB, free: 62.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.2513, allocations: 0.724 MB / 416 MB, free: 61.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.2518, allocations: 239.6 kB / 416.3 MB, free: 61.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.2521, allocations: 116.8 kB / 416.4 MB, free: 60.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2521, allocations: 4 kB / 416.4 MB, free: 60.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004264/0.2525, allocations: 182.8 kB / 416.5 MB, free: 60.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.984e-06/0.2526, allocations: 0 / 416.5 MB, free: 60.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.001669/0.2542, allocations: 0.7863 MB / 417.3 MB, free: 59.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/0.2543, allocations: 152.2 kB / 417.5 MB, free: 59.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.2545, allocations: 138.6 kB / 417.6 MB, free: 59.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.2545, allocations: 29.7 kB / 417.6 MB, free: 59.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.2546, allocations: 136.5 kB / 417.8 MB, free: 59.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.786e-05/0.2547, allocations: 82.89 kB / 417.9 MB, free: 59.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2548, allocations: 57.61 kB / 417.9 MB, free: 59.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.742e-05/0.2549, allocations: 326.8 kB / 418.2 MB, free: 58.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.2551, allocations: 64.31 kB / 418.3 MB, free: 58.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2553, allocations: 128.6 kB / 418.4 MB, free: 58.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.2557, allocations: 265 kB / 418.7 MB, free: 58.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2557, allocations: 3.984 kB / 418.7 MB, free: 58.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005075/0.2563, allocations: 288.2 kB / 419 MB, free: 58.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.2563, allocations: 43.81 kB / 419 MB, free: 58.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.2563, allocations: 4 kB / 419 MB, free: 58.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.2564, allocations: 4 kB / 419 MB, free: 58.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.2567, allocations: 63.91 kB / 419.1 MB, free: 57.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.2567, allocations: 7.938 kB / 419.1 MB, free: 57.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.2569, allocations: 12 kB / 419.1 MB, free: 57.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.2569, allocations: 12 kB / 419.1 MB, free: 57.91 MB / 314.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.0002076/0.2571, allocations: 179.8 kB / 419.3 MB, free: 57.72 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.2572, allocations: 19.84 kB / 419.3 MB, free: 57.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.396e-05/0.2572, allocations: 16.83 kB / 419.3 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2573, allocations: 4 kB / 419.3 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.2573, allocations: 0 / 419.3 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2573, allocations: 3.984 kB / 419.3 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.2584, allocations: 0.7045 MB / 420 MB, free: 56.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2584, allocations: 4 kB / 420 MB, free: 56.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.2587, allocations: 43.97 kB / 420.1 MB, free: 56.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.2587, allocations: 0 / 420.1 MB, free: 56.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.2588, allocations: 4 kB / 420.1 MB, free: 56.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.2588, allocations: 7.938 kB / 420.1 MB, free: 56.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2588, allocations: 0 / 420.1 MB, free: 56.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.2611, allocations: 1.765 MB / 421.9 MB, free: 54.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.2612, allocations: 88.92 kB / 421.9 MB, free: 54.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.2612, allocations: 12 kB / 422 MB, free: 54.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.2614, allocations: 12.03 kB / 422 MB, free: 54.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-05/0.2615, allocations: 15.92 kB / 422 MB, free: 54.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.2615, allocations: 8 kB / 422 MB, free: 54.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.563e-05/0.2616, allocations: 107.1 kB / 422.1 MB, free: 54.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2616, allocations: 0 / 422.1 MB, free: 54.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007016/0.2623, allocations: 72 kB / 422.2 MB, free: 54.61 MB / 314.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 0.0001359/0.2625, allocations: 115.2 kB / 422.3 MB, free: 54.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004447/0.2629, allocations: 251.5 kB / 422.5 MB, free: 54.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.263, allocations: 0 / 422.5 MB, free: 54.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.2632, allocations: 199.8 kB / 422.7 MB, free: 54.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.2636, allocations: 12 kB / 422.7 MB, free: 54.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.2652, allocations: 0.8793 MB / 423.6 MB, free: 53.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.2655, allocations: 0.7362 MB / 424.4 MB, free: 52.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.2656, allocations: 17.53 kB / 424.4 MB, free: 52.31 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.663e-05/0.2657, allocations: 23.44 kB / 424.4 MB, free: 52.29 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2657, allocations: 0 / 424.4 MB, free: 52.29 MB / 314.7 MB Notification: Performance of Templates: time 0.00631/0.272, allocations: 1.91 MB / 426.3 MB, free: 50.39 MB / 314.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)