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.001076/0.001081, allocations: 106.1 kB / 15.99 MB, free: 5.914 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.00115/0.00115, allocations: 192 kB / 16.91 MB, free: 5.758 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.398/1.398, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03876/0.03876, allocations: 8.111 MB / 278.2 MB, free: 4.172 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.001506/0.001506, allocations: 71.91 kB / 337.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.249, allocations: 48.28 MB / 385.6 MB, free: 51.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003053/0.2521, allocations: 2.037 MB / 387.7 MB, free: 49.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009258/0.2531, allocations: 0.604 MB / 388.3 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.722e-05/0.2532, allocations: 4.5 kB / 388.3 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.149e-05/0.2533, allocations: 16.47 kB / 388.3 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.2534, allocations: 40.08 kB / 388.3 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.2537, allocations: 54.11 kB / 388.4 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.254, allocations: 226.5 kB / 388.6 MB, free: 49.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.2542, allocations: 107.1 kB / 388.7 MB, free: 48.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.2544, allocations: 85.16 kB / 388.8 MB, free: 48.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.2545, allocations: 97.05 kB / 388.9 MB, free: 48.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.2546, allocations: 20.47 kB / 388.9 MB, free: 48.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.553e-05/0.2546, allocations: 22.84 kB / 388.9 MB, free: 48.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.449e-05/0.2547, allocations: 40.83 kB / 389 MB, free: 48.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.2548, allocations: 101.8 kB / 389.1 MB, free: 48.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.2551, allocations: 182.1 kB / 389.2 MB, free: 48.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2551, allocations: 0 / 389.2 MB, free: 48.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2552, allocations: 2.406 kB / 389.2 MB, free: 48.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.2552, allocations: 0 / 389.2 MB, free: 48.75 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.0006933/0.2559, allocations: 0.4965 MB / 389.7 MB, free: 48.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.2559, allocations: 9.656 kB / 389.8 MB, free: 48.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.573e-05/0.256, allocations: 23.53 kB / 389.8 MB, free: 48.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2561, allocations: 184 kB / 390 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.2562, allocations: 18.91 kB / 390 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.2562, allocations: 23.45 kB / 390 MB, free: 48.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.2565, allocations: 196 kB / 390.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2566, allocations: 4.156 kB / 390.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.2566, allocations: 6.344 kB / 390.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.2566, allocations: 4.5 kB / 390.2 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.2568, allocations: 114.6 kB / 390.3 MB, free: 47.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.2579, allocations: 0.7247 MB / 391 MB, free: 47.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.2583, allocations: 244.2 kB / 391.3 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.2585, allocations: 111.1 kB / 391.4 MB, free: 47.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.2585, allocations: 1.5 kB / 391.4 MB, free: 47.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.2588, allocations: 185.7 kB / 391.6 MB, free: 47.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.2588, allocations: 0.9688 kB / 391.6 MB, free: 47.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001153/0.26, allocations: 0.7923 MB / 392.4 MB, free: 46.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.2601, allocations: 140.8 kB / 392.5 MB, free: 46.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.2601, allocations: 136.6 kB / 392.6 MB, free: 46.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.2602, allocations: 33.31 kB / 392.7 MB, free: 46.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/0.2602, allocations: 136.6 kB / 392.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.405e-05/0.2603, allocations: 85.25 kB / 392.9 MB, free: 45.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.2604, allocations: 56.61 kB / 392.9 MB, free: 45.94 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.2604, allocations: 323.5 kB / 393.3 MB, free: 45.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.2605, allocations: 68.16 kB / 393.3 MB, free: 45.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.2607, allocations: 130.2 kB / 393.4 MB, free: 45.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.2609, allocations: 268.2 kB / 393.7 MB, free: 45.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2609, allocations: 0.5938 kB / 393.7 MB, free: 45.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003536/0.2613, allocations: 288 kB / 394 MB, free: 45.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.2613, allocations: 39.97 kB / 394 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2614, allocations: 6.594 kB / 394 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.2614, allocations: 4.703 kB / 394 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.2616, allocations: 57.25 kB / 394.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.2616, allocations: 4.516 kB / 394.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.436e-05/0.2617, allocations: 10.25 kB / 394.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2617, allocations: 13 kB / 394.1 MB, free: 45.09 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.0001617/0.2619, allocations: 192 kB / 394.3 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.2619, allocations: 12.91 kB / 394.3 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.648e-05/0.262, allocations: 24.12 kB / 394.3 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.262, allocations: 6.156 kB / 394.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.262, allocations: 0 / 394.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.262, allocations: 0.9844 kB / 394.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008675/0.2629, allocations: 0.7018 MB / 395.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2629, allocations: 1.594 kB / 395.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.2631, allocations: 46.16 kB / 395.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2631, allocations: 1.094 kB / 395.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.2632, allocations: 10.66 kB / 395.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2632, allocations: 1.562 kB / 395.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.2632, allocations: 7 kB / 395.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005387/0.2637, allocations: 476.7 kB / 395.6 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.2638, allocations: 90.11 kB / 395.7 MB, free: 43.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.2638, allocations: 10.05 kB / 395.7 MB, free: 43.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2639, allocations: 4.484 kB / 395.7 MB, free: 43.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.264, allocations: 20.23 kB / 395.7 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.264, allocations: 16.52 kB / 395.7 MB, free: 43.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.572e-05/0.2641, allocations: 98.86 kB / 395.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2641, allocations: 0 / 395.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.2644, allocations: 54.53 kB / 395.9 MB, free: 43.86 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 9.683e-05/0.2645, allocations: 116.1 kB / 396 MB, free: 43.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003735/0.2649, allocations: 256.4 kB / 396.2 MB, free: 43.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2649, allocations: 9.438 kB / 396.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.2651, allocations: 195.8 kB / 396.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.2653, allocations: 15.2 kB / 396.5 MB, free: 43.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009604/0.2663, allocations: 0.7093 MB / 397.2 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.2665, allocations: 0.7291 MB / 397.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.464e-05/0.2665, allocations: 21.06 kB / 397.9 MB, free: 42.25 MB / 318.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2666, allocations: 0 / 397.9 MB, free: 42.25 MB / 318.1 MB Notification: Performance of Templates: time 0.004517/0.2711, allocations: 2.112 MB / 400 MB, free: 42.08 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)