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.005332/0.005333, allocations: 97.06 kB / 15.73 MB, free: 6.043 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.001091/0.001091, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.453/1.453, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04233/0.04233, allocations: 8.112 MB / 278 MB, free: 13.08 MB / 238.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.001421/0.001421, allocations: 72.5 kB / 386.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3543, allocations: 48.3 MB / 435 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003427/0.3578, allocations: 1.98 MB / 437 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3588, allocations: 0.6094 MB / 437.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.445e-05/0.3589, allocations: 2.75 kB / 437.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.727e-05/0.359, allocations: 26.06 kB / 437.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.3592, allocations: 46.97 kB / 437.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.3594, allocations: 69.09 kB / 437.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.3598, allocations: 224.4 kB / 437.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.36, allocations: 99.72 kB / 438 MB, free: 6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.3602, allocations: 93.2 kB / 438.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.3604, allocations: 92.39 kB / 438.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.3604, allocations: 21.25 kB / 438.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.436e-05/0.3605, allocations: 20.78 kB / 438.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.3606, allocations: 44.86 kB / 438.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3607, allocations: 101.5 kB / 438.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.361, allocations: 231.1 kB / 438.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.361, allocations: 0 / 438.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.361, allocations: 0 / 438.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.361, allocations: 0 / 438.6 MB, free: 5.727 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.0007419/0.3618, allocations: 0.506 MB / 439.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.3618, allocations: 10.19 kB / 439.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.298e-05/0.3619, allocations: 23.27 kB / 439.2 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.3621, allocations: 179.4 kB / 439.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3621, allocations: 13.84 kB / 439.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-05/0.3622, allocations: 31.2 kB / 439.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.3625, allocations: 191.4 kB / 439.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3626, allocations: 10.05 kB / 439.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.3626, allocations: 9.312 kB / 439.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3626, allocations: 5.812 kB / 439.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.3628, allocations: 112.3 kB / 439.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.364, allocations: 0.7194 MB / 440.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.3643, allocations: 244 kB / 440.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.3646, allocations: 114.2 kB / 440.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.3646, allocations: 1.938 kB / 440.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/0.3649, allocations: 178.6 kB / 441 MB, free: 3.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.3649, allocations: 0 / 441 MB, free: 3.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001425/0.3663, allocations: 0.8047 MB / 441.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.3664, allocations: 140.7 kB / 441.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.3665, allocations: 136.3 kB / 442 MB, free: 3.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.3666, allocations: 33.22 kB / 442.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.3666, allocations: 136 kB / 442.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.3667, allocations: 85.27 kB / 442.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.3668, allocations: 55.25 kB / 442.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.3669, allocations: 328.3 kB / 442.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.3671, allocations: 64.03 kB / 442.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.3672, allocations: 135.9 kB / 442.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.3676, allocations: 260.9 kB / 443.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3676, allocations: 4 kB / 443.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004189/0.368, allocations: 292.1 kB / 443.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.368, allocations: 34.06 kB / 443.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.368, allocations: 6.375 kB / 443.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.3681, allocations: 3.938 kB / 443.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.3683, allocations: 61.5 kB / 443.5 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.3683, allocations: 5.359 kB / 443.5 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.3684, allocations: 18.59 kB / 443.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.3685, allocations: 12.56 kB / 443.5 MB, free: 1.984 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.0001727/0.3686, allocations: 180.8 kB / 443.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.3687, allocations: 16.95 kB / 443.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.3687, allocations: 19.59 kB / 443.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3687, allocations: 2.469 kB / 443.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.3687, allocations: 3.984 kB / 443.8 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3688, allocations: 9.297 kB / 443.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009736/0.3697, allocations: 0.6982 MB / 444.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3698, allocations: 1.375 kB / 444.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.37, allocations: 38.77 kB / 444.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.37, allocations: 1.375 kB / 444.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.37, allocations: 8.922 kB / 444.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.37, allocations: 6.094 kB / 444.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.37, allocations: 5.391 kB / 444.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006014/0.3706, allocations: 467.2 kB / 445 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.3707, allocations: 90.69 kB / 445.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.3707, allocations: 9.5 kB / 445.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.3709, allocations: 9.344 kB / 445.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.3709, allocations: 15.56 kB / 445.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.3709, allocations: 8.328 kB / 445.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.694e-05/0.371, allocations: 103.7 kB / 445.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.371, allocations: 0 / 445.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.3713, allocations: 54.97 kB / 445.3 MB, free: 0.7656 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.0001191/0.3715, allocations: 117.8 kB / 445.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.3719, allocations: 256.2 kB / 445.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3719, allocations: 1.594 kB / 445.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.3721, allocations: 191.3 kB / 445.8 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.3724, allocations: 17.8 kB / 445.8 MB, free: 408 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.3735, allocations: 0.6163 MB / 446.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.3739, allocations: 0.7316 MB / 447.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.898e-05/0.374, allocations: 18.72 kB / 447.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.374, allocations: 18.22 kB / 447.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.374, allocations: 0 / 447.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of Templates: time 0.005314/0.3793, allocations: 1.688 MB / 448.9 MB, free: 15.01 MB / 334.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)