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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.005644/0.005645, allocations: 176.7 kB / 15.12 MB, free: 5.988 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.395/1.395, allocations: 194.5 MB / 210.3 MB, free: 8.594 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03778/0.03778, allocations: 8.081 MB / 263.6 MB, free: 3.207 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.001624/0.001624, allocations: 116.5 kB / 310.6 MB, free: 27.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003784, allocations: 8 kB / 367.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2362, allocations: 46.2 MB / 413.6 MB, free: 47.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08938/0.3257, allocations: 72.7 MB / 486.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001521/0.3259, allocations: 47.98 kB / 486.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007202/0.3331, allocations: 2.91 MB / 489.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.3331, allocations: 4 kB / 489.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.3331, allocations: 0 / 489.2 MB, free: 10.12 MB / 330.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.0006348/0.3338, allocations: 477.4 kB / 489.7 MB, free: 9.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.3338, allocations: 12.03 kB / 489.7 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.3339, allocations: 66.45 kB / 489.8 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/0.334, allocations: 19.77 kB / 489.8 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.3341, allocations: 186.9 kB / 490 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.3342, allocations: 16.38 kB / 490 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.3342, allocations: 20 kB / 490 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.3345, allocations: 178.1 kB / 490.2 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3346, allocations: 0 / 490.2 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.3346, allocations: 12 kB / 490.2 MB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3346, allocations: 4 kB / 490.2 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.3348, allocations: 120.8 kB / 490.3 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.3359, allocations: 0.7163 MB / 491 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.3363, allocations: 254.6 kB / 491.3 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.3364, allocations: 11.95 kB / 491.3 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.3367, allocations: 183.2 kB / 491.5 MB, free: 7.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.026e-06/0.3367, allocations: 3.984 kB / 491.5 MB, free: 7.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001269/0.338, allocations: 0.8676 MB / 492.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.338, allocations: 136.5 kB / 492.5 MB, free: 6.523 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.3381, allocations: 129.8 kB / 492.6 MB, free: 6.391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.3382, allocations: 29.7 kB / 492.6 MB, free: 6.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.3382, allocations: 136.5 kB / 492.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.195e-05/0.3383, allocations: 86.8 kB / 492.8 MB, free: 6.133 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.3383, allocations: 8 kB / 492.8 MB, free: 6.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3384, allocations: 326.8 kB / 493.2 MB, free: 5.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.3386, allocations: 64.3 kB / 493.2 MB, free: 5.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.3387, allocations: 131 kB / 493.4 MB, free: 5.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.3389, allocations: 111.4 kB / 493.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3389, allocations: 7.938 kB / 493.5 MB, free: 5.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003673/0.3392, allocations: 296.1 kB / 493.8 MB, free: 5.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.3393, allocations: 34.8 kB / 493.8 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3393, allocations: 4 kB / 493.8 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3393, allocations: 0 / 493.8 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.3395, allocations: 59.91 kB / 493.9 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.3396, allocations: 4.25 kB / 493.9 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.733e-05/0.3397, allocations: 20 kB / 493.9 MB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.3397, allocations: 8 kB / 493.9 MB, free: 5.023 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(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,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.3399, allocations: 179.6 kB / 494.1 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.3399, allocations: 11.91 kB / 494.1 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.17e-05/0.34, allocations: 24.83 kB / 494.1 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.34, allocations: 0 / 494.1 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.34, allocations: 4 kB / 494.1 MB, free: 4.793 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.34, allocations: 4 kB / 494.1 MB, free: 4.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008311/0.3408, allocations: 0.6966 MB / 494.8 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3408, allocations: 0 / 494.8 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002118/0.3411, allocations: 47.92 kB / 494.9 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3411, allocations: 8.062 kB / 494.9 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3411, allocations: 8 kB / 494.9 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.3411, allocations: 7.938 kB / 494.9 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3411, allocations: 0 / 494.9 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.3417, allocations: 0.4886 MB / 495.4 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.3417, allocations: 85.02 kB / 495.4 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.3418, allocations: 8 kB / 495.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3419, allocations: 12 kB / 495.5 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.727e-05/0.3419, allocations: 12.02 kB / 495.5 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.342, allocations: 12 kB / 495.5 MB, free: 3.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.342, allocations: 100.1 kB / 495.6 MB, free: 3.184 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.342, allocations: 0 / 495.6 MB, free: 3.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002814/0.3423, allocations: 56 kB / 495.6 MB, free: 3.129 MB / 330.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.w,idealSensor.flange.phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009432/0.3433, allocations: 1.174 MB / 496.8 MB, free: 1.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.3436, allocations: 266.2 kB / 497.1 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3436, allocations: 0 / 497.1 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.3438, allocations: 195.2 kB / 497.3 MB, free: 1.438 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.344, allocations: 15.94 kB / 497.3 MB, free: 1.422 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.3465, allocations: 2.576 MB / 499.9 MB, free: 14.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.3469, allocations: 0.7363 MB / 0.4889 GB, free: 14 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.232e-05/0.347, allocations: 13.55 kB / 0.4889 GB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.926e-05/0.347, allocations: 55.42 kB / 0.4889 GB, free: 13.93 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3471, allocations: 4 kB / 0.4889 GB, free: 13.92 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.3607, allocations: 3.052 MB / 0.4919 GB, free: 11.03 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.361, allocations: 210 kB / 0.4921 GB, free: 10.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/1.945, allocations: 0 / 0.4921 GB, free: 10.79 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)