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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 108.2 kB / 16.27 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 187.4 kB / 17.2 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04329/0.04329, allocations: 8.106 MB / 278.5 MB, free: 4.035 MB / 222.1 MB 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.001443/0.001443, allocations: 71.91 kB / 337.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.275, allocations: 48.28 MB / 386.1 MB, free: 51.17 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003435/0.2784, allocations: 1.973 MB / 388.1 MB, free: 49.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009277/0.2794, allocations: 0.6152 MB / 388.7 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.764e-05/0.2795, allocations: 4.062 kB / 388.7 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.733e-05/0.2796, allocations: 25.66 kB / 388.8 MB, free: 49.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.2797, allocations: 48.33 kB / 388.8 MB, free: 49.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.28, allocations: 65.75 kB / 388.9 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2802, allocations: 224.5 kB / 389.1 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.2805, allocations: 101.5 kB / 389.2 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.2806, allocations: 91.55 kB / 389.3 MB, free: 49.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.2808, allocations: 99.22 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.2808, allocations: 20.97 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.014e-05/0.2809, allocations: 21.59 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.2809, allocations: 42.47 kB / 389.5 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.281, allocations: 100.7 kB / 389.6 MB, free: 48.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.2814, allocations: 230 kB / 389.8 MB, free: 48.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2814, allocations: 1.125 kB / 389.8 MB, free: 48.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2814, allocations: 1.094 kB / 389.8 MB, free: 48.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2814, allocations: 0 / 389.8 MB, free: 48.87 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.0006824/0.2821, allocations: 0.5014 MB / 390.3 MB, free: 48.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2821, allocations: 8.25 kB / 390.3 MB, free: 48.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.2822, allocations: 20.52 kB / 390.3 MB, free: 48.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.2823, allocations: 187 kB / 390.5 MB, free: 48.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.2823, allocations: 19.95 kB / 390.5 MB, free: 48.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.2824, allocations: 23.34 kB / 390.5 MB, free: 48.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.2827, allocations: 184 kB / 390.7 MB, free: 48.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.2827, allocations: 7.922 kB / 390.7 MB, free: 48.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.2828, allocations: 6.688 kB / 390.7 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2828, allocations: 9.5 kB / 390.7 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.283, allocations: 114 kB / 390.9 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.2841, allocations: 0.7242 MB / 391.6 MB, free: 47.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.2845, allocations: 243.4 kB / 391.8 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.2848, allocations: 119.5 kB / 391.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.2848, allocations: 2.219 kB / 391.9 MB, free: 47.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.2851, allocations: 177.2 kB / 392.1 MB, free: 47.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.884e-06/0.2851, allocations: 0 / 392.1 MB, free: 47.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001273/0.2864, allocations: 0.7951 MB / 392.9 MB, free: 46.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.2865, allocations: 140.7 kB / 393 MB, free: 46.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2866, allocations: 142.5 kB / 393.2 MB, free: 46.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.2866, allocations: 32.91 kB / 393.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.73e-05/0.2867, allocations: 135.1 kB / 393.3 MB, free: 46.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.312e-05/0.2868, allocations: 85.75 kB / 393.4 MB, free: 46.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.2868, allocations: 55.8 kB / 393.5 MB, free: 46.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.2869, allocations: 326.2 kB / 393.8 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.287, allocations: 65.34 kB / 393.9 MB, free: 45.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.2872, allocations: 128.8 kB / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.2875, allocations: 266.4 kB / 394.3 MB, free: 45.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2875, allocations: 1.219 kB / 394.3 MB, free: 45.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004003/0.2879, allocations: 298 kB / 394.5 MB, free: 45.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.2879, allocations: 34.25 kB / 394.6 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.2879, allocations: 6.25 kB / 394.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.288, allocations: 3.531 kB / 394.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.2882, allocations: 61.69 kB / 394.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.2882, allocations: 8.344 kB / 394.7 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.631e-05/0.2883, allocations: 11.17 kB / 394.7 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.2883, allocations: 12.41 kB / 394.7 MB, free: 45.2 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.0001716/0.2885, allocations: 179.5 kB / 394.9 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.2885, allocations: 14.59 kB / 394.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.2886, allocations: 19.72 kB / 394.9 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2886, allocations: 4.281 kB / 394.9 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2886, allocations: 0 / 394.9 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.2886, allocations: 1.219 kB / 394.9 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009676/0.2896, allocations: 0.7149 MB / 395.6 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2896, allocations: 5.969 kB / 395.6 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.2898, allocations: 43.95 kB / 395.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2898, allocations: 1.375 kB / 395.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.2899, allocations: 5.531 kB / 395.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2899, allocations: 2.125 kB / 395.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.2899, allocations: 5.312 kB / 395.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/0.2905, allocations: 480.8 kB / 396.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.2906, allocations: 89.47 kB / 396.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.2906, allocations: 9.484 kB / 396.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2907, allocations: 5.656 kB / 396.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.299e-05/0.2908, allocations: 15.77 kB / 396.3 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.2908, allocations: 11.75 kB / 396.3 MB, free: 44.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.524e-05/0.2909, allocations: 104.2 kB / 396.4 MB, free: 43.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.42e-07/0.2909, allocations: 0 / 396.4 MB, free: 43.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.2912, allocations: 58.34 kB / 396.4 MB, free: 43.97 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 0.0001359/0.2914, allocations: 116.4 kB / 396.5 MB, free: 43.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.2919, allocations: 253 kB / 396.8 MB, free: 43.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2919, allocations: 4.125 kB / 396.8 MB, free: 43.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.2921, allocations: 197.3 kB / 397 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2923, allocations: 13.06 kB / 397 MB, free: 43.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009669/0.2933, allocations: 0.6339 MB / 397.6 MB, free: 43.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.2935, allocations: 0.7342 MB / 398.4 MB, free: 42.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.2936, allocations: 18.44 kB / 398.4 MB, free: 42.45 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2936, allocations: 0 / 398.4 MB, free: 42.45 MB / 318.1 MB Notification: Performance of Templates: time 0.004643/0.2982, allocations: 2.104 MB / 400.5 MB, free: 42.27 MB / 318.1 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)