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.001725/0.001725, allocations: 175.7 kB / 7.65 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.345/1.345, allocations: 194.3 MB / 202.4 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03602/0.03602, allocations: 7.903 MB / 255.2 MB, free: 8.254 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.001607/0.001607, allocations: 124.4 kB / 301.9 MB, free: 32.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.649e-05, allocations: 0 / 354.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2604, allocations: 46.19 MB / 400.6 MB, free: 46.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09039/0.3508, allocations: 71.96 MB / 472.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.3511, allocations: 48.95 kB / 472.6 MB, free: 2.895 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007433/0.3585, allocations: 2.881 MB / 475.5 MB, free: 92 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3586, allocations: 0.9062 kB / 475.5 MB, free: 92 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3586, allocations: 4 kB / 475.5 MB, free: 88 kB / 314.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.0005743/0.3592, allocations: 470.9 kB / 475.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3592, allocations: 8.031 kB / 475.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.3593, allocations: 28.39 kB / 476 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.3595, allocations: 179.6 kB / 476.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.3595, allocations: 9.125 kB / 476.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.3595, allocations: 17.78 kB / 476.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002137/0.3598, allocations: 96.8 kB / 476.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.36, allocations: 152.1 kB / 476.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3601, allocations: 0 / 476.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.3601, allocations: 0.5938 kB / 476.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.3601, allocations: 8 kB / 476.4 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.3612, allocations: 0.6842 MB / 477.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.3616, allocations: 240.3 kB / 477.3 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.3618, allocations: 98.59 kB / 477.4 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.3618, allocations: 4.766 kB / 477.4 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.3621, allocations: 173 kB / 477.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.3621, allocations: 0.5625 kB / 477.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001111/0.3632, allocations: 0.5782 MB / 478.2 MB, free: 13.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/0.3633, allocations: 136.5 kB / 478.3 MB, free: 12.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.3634, allocations: 121 kB / 478.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.3635, allocations: 25.7 kB / 478.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.3636, allocations: 136.2 kB / 478.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.3637, allocations: 84.16 kB / 478.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-06/0.3637, allocations: 0 / 478.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3638, allocations: 327.8 kB / 479 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.27e-05/0.3639, allocations: 60.27 kB / 479.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.3641, allocations: 122.9 kB / 479.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.3642, allocations: 73.7 kB / 479.2 MB, free: 12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.3642, allocations: 0 / 479.2 MB, free: 12 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003459/0.3646, allocations: 235.4 kB / 479.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.3646, allocations: 29.7 kB / 479.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.3646, allocations: 4 kB / 479.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3647, allocations: 4 kB / 479.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.3649, allocations: 64.16 kB / 479.6 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3649, allocations: 7 kB / 479.6 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.763e-05/0.365, allocations: 8.562 kB / 479.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.365, allocations: 12 kB / 479.6 MB, free: 11.64 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(fixed = false ) "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 () * 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.0001618/0.3652, allocations: 150.9 kB / 479.7 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003043/0.3655, allocations: 214.3 kB / 480 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.3656, allocations: 16.66 kB / 480 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.3656, allocations: 23.12 kB / 480 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3656, allocations: 4 kB / 480 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/0.3656, allocations: 3.953 kB / 480 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3657, allocations: 3.938 kB / 480 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008481/0.3665, allocations: 0.6037 MB / 480.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3665, allocations: 3.953 kB / 480.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002/0.3667, allocations: 39.98 kB / 480.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.3667, allocations: 6.438 kB / 480.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3668, allocations: 7.984 kB / 480.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3668, allocations: 0 / 480.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3668, allocations: 0 / 480.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005168/0.3673, allocations: 428.3 kB / 481.1 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.3674, allocations: 85.02 kB / 481.2 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.3674, allocations: 8 kB / 481.2 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3675, allocations: 7.953 kB / 481.2 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.398e-05/0.3676, allocations: 20.02 kB / 481.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.3676, allocations: 15.69 kB / 481.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.84e-05/0.3677, allocations: 95.97 kB / 481.3 MB, free: 9.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3677, allocations: 0 / 481.3 MB, free: 9.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.368, allocations: 48 kB / 481.4 MB, free: 9.773 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) * 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.0007776/0.3688, allocations: 1.098 MB / 482.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.3692, allocations: 227.3 kB / 482.7 MB, free: 8.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3692, allocations: 0 / 482.7 MB, free: 8.406 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.3694, allocations: 188 kB / 482.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.3695, allocations: 16.52 kB / 482.9 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3707, allocations: 0.5438 MB / 483.4 MB, free: 7.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.371, allocations: 0.7438 MB / 484.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.59e-05/0.371, allocations: 19.67 kB / 484.2 MB, free: 6.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.3711, allocations: 59.42 kB / 484.2 MB, free: 6.793 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3711, allocations: 0 / 484.2 MB, free: 6.793 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.3931, allocations: 2.818 MB / 487.1 MB, free: 4.051 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.3933, allocations: 183.6 kB / 487.2 MB, free: 3.852 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.939, allocations: 0 / 487.2 MB, free: 3.852 MB / 330.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)