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.001489/0.001489, allocations: 102 kB / 16.35 MB, free: 5.824 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.001208/0.001208, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.381/1.381, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04372/0.04372, allocations: 8.109 MB / 278.6 MB, free: 3.949 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.001744/0.001745, allocations: 67.89 kB / 338.6 MB, free: 7.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2494, allocations: 48.28 MB / 386.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00336/0.2528, allocations: 1.986 MB / 388.9 MB, free: 50.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2539, allocations: 0.6068 MB / 389.5 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.254, allocations: 7.438 kB / 389.5 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.586e-05/0.2542, allocations: 26.97 kB / 389.5 MB, free: 49.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.2543, allocations: 52.95 kB / 389.6 MB, free: 49.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.2546, allocations: 57.09 kB / 389.6 MB, free: 49.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.2549, allocations: 233.5 kB / 389.9 MB, free: 49.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.2552, allocations: 102 kB / 390 MB, free: 49.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.2554, allocations: 84.97 kB / 390.1 MB, free: 49.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.2555, allocations: 96.2 kB / 390.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.2556, allocations: 22.12 kB / 390.2 MB, free: 49.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.228e-05/0.2556, allocations: 21.19 kB / 390.2 MB, free: 49.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.097e-05/0.2557, allocations: 45.25 kB / 390.2 MB, free: 49.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2558, allocations: 101.8 kB / 390.3 MB, free: 49.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.256, allocations: 231.6 kB / 390.6 MB, free: 49.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.256, allocations: 1.844 kB / 390.6 MB, free: 49.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.256, allocations: 0 / 390.6 MB, free: 49.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.2561, allocations: 1.188 kB / 390.6 MB, free: 49.25 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.0006765/0.2567, allocations: 0.4988 MB / 391.1 MB, free: 48.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2568, allocations: 10.5 kB / 391.1 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.032e-05/0.2569, allocations: 19.88 kB / 391.1 MB, free: 48.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.257, allocations: 187.2 kB / 391.3 MB, free: 48.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.257, allocations: 15.03 kB / 391.3 MB, free: 48.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.257, allocations: 27.19 kB / 391.3 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.2574, allocations: 189.4 kB / 391.5 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.2574, allocations: 0 / 391.5 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.2574, allocations: 17.28 kB / 391.5 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.2574, allocations: 5.312 kB / 391.5 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.2576, allocations: 115.6 kB / 391.6 MB, free: 48.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.2587, allocations: 0.7128 MB / 392.4 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.2591, allocations: 248.5 kB / 392.6 MB, free: 47.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.2593, allocations: 116 kB / 392.7 MB, free: 47.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.2593, allocations: 1.219 kB / 392.7 MB, free: 47.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002636/0.2596, allocations: 177.9 kB / 392.9 MB, free: 47.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.2596, allocations: 1.25 kB / 392.9 MB, free: 47.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.00117/0.2608, allocations: 0.7947 MB / 393.7 MB, free: 46.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.2609, allocations: 137.6 kB / 393.8 MB, free: 46.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.2609, allocations: 136.2 kB / 393.9 MB, free: 46.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.261, allocations: 32.69 kB / 394 MB, free: 46.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.132e-05/0.261, allocations: 140.5 kB / 394.1 MB, free: 46.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.2611, allocations: 81.58 kB / 394.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.482e-05/0.2612, allocations: 61.02 kB / 394.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.803e-05/0.2613, allocations: 327.6 kB / 394.6 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.2614, allocations: 60.08 kB / 394.6 MB, free: 46.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.2615, allocations: 130.6 kB / 394.8 MB, free: 45.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2618, allocations: 269.2 kB / 395 MB, free: 45.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2618, allocations: 4.844 kB / 395 MB, free: 45.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003773/0.2622, allocations: 291.8 kB / 395.3 MB, free: 45.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.2622, allocations: 38.55 kB / 395.3 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.2622, allocations: 7.094 kB / 395.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.2623, allocations: 7.078 kB / 395.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.2625, allocations: 64.72 kB / 395.4 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2625, allocations: 3.094 kB / 395.4 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2626, allocations: 14.98 kB / 395.4 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.2626, allocations: 9.031 kB / 395.5 MB, free: 45.57 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.0001635/0.2628, allocations: 178.2 kB / 395.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.2628, allocations: 13.53 kB / 395.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.97e-05/0.2629, allocations: 20.61 kB / 395.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2629, allocations: 3.5 kB / 395.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2629, allocations: 0 / 395.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2629, allocations: 1.406 kB / 395.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008342/0.2638, allocations: 0.7168 MB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2638, allocations: 1.812 kB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.264, allocations: 37.92 kB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.264, allocations: 2.078 kB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.264, allocations: 10.3 kB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.264, allocations: 1.891 kB / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.264, allocations: 0 / 396.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.2645, allocations: 480.6 kB / 396.9 MB, free: 44.56 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.2646, allocations: 90.31 kB / 397 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.2646, allocations: 9.5 kB / 397 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.2648, allocations: 10.81 kB / 397 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.2648, allocations: 15.66 kB / 397 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.2648, allocations: 11.91 kB / 397 MB, free: 44.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.719e-05/0.2649, allocations: 103 kB / 397.1 MB, free: 44.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2649, allocations: 1.375 kB / 397.1 MB, free: 44.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.2652, allocations: 49.38 kB / 397.2 MB, free: 44.35 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.0001007/0.2653, allocations: 127.3 kB / 397.3 MB, free: 44.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003409/0.2657, allocations: 247.6 kB / 397.6 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2657, allocations: 5.281 kB / 397.6 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.2659, allocations: 196.6 kB / 397.8 MB, free: 43.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.2662, allocations: 12.16 kB / 397.8 MB, free: 43.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.2672, allocations: 0.6031 MB / 398.4 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001812/0.2674, allocations: 0.7269 MB / 399.1 MB, free: 42.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.93e-05/0.2674, allocations: 20.03 kB / 399.1 MB, free: 42.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.476e-05/0.2675, allocations: 17.75 kB / 399.1 MB, free: 42.85 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2675, allocations: 0 / 399.1 MB, free: 42.85 MB / 318.1 MB Notification: Performance of Templates: time 0.005086/0.2726, allocations: 1.645 MB / 400.8 MB, free: 42.74 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 -s gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)