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.002/0.002, allocations: 182.1 kB / 12.74 MB, free: 2.582 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.29/1.29, allocations: 194.3 MB / 207.5 MB, free: 3.387 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05259/0.05259, allocations: 7.905 MB / 260.4 MB, free: 13.78 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.001626/0.001626, allocations: 128.4 kB / 307.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.518e-05/3.521e-05, allocations: 4 kB / 361.3 MB, free: 8.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2158, allocations: 46.2 MB / 407.5 MB, free: 67.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07852/0.2944, allocations: 72.62 MB / 480.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001664/0.2946, allocations: 51.92 kB / 480.2 MB, free: 10.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007981/0.3026, allocations: 2.904 MB / 483.1 MB, free: 7.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3026, allocations: 0 / 483.1 MB, free: 7.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.3027, allocations: 4 kB / 483.1 MB, free: 7.332 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.0006257/0.3033, allocations: 476.2 kB / 483.6 MB, free: 6.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3033, allocations: 12.03 kB / 483.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.501e-05/0.3034, allocations: 50.55 kB / 483.6 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.3035, allocations: 23.77 kB / 483.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.3036, allocations: 174.9 kB / 483.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.3037, allocations: 16.38 kB / 483.9 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.3037, allocations: 20 kB / 483.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.3041, allocations: 182.1 kB / 484.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3041, allocations: 3.906 kB / 484.1 MB, free: 6.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.3041, allocations: 8 kB / 484.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.3042, allocations: 4 kB / 484.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.3044, allocations: 121 kB / 484.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.3056, allocations: 0.7202 MB / 484.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003768/0.306, allocations: 243.5 kB / 485.1 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.3063, allocations: 116.8 kB / 485.3 MB, free: 4.996 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.3063, allocations: 4 kB / 485.3 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.3066, allocations: 183.2 kB / 485.4 MB, free: 4.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.585e-06/0.3066, allocations: 0 / 485.4 MB, free: 4.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001122/0.3077, allocations: 0.7338 MB / 486.2 MB, free: 3.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.3078, allocations: 136.5 kB / 486.3 MB, free: 3.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3079, allocations: 121 kB / 486.4 MB, free: 3.684 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3079, allocations: 37.69 kB / 486.5 MB, free: 3.641 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.264e-05/0.308, allocations: 132.2 kB / 486.6 MB, free: 3.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3081, allocations: 82.83 kB / 486.7 MB, free: 3.426 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.3082, allocations: 8 kB / 486.7 MB, free: 3.418 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3083, allocations: 339.4 kB / 487 MB, free: 3.078 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.3084, allocations: 56.33 kB / 487.1 MB, free: 3.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.3085, allocations: 124.5 kB / 487.2 MB, free: 2.871 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.3087, allocations: 106.9 kB / 487.3 MB, free: 2.762 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3087, allocations: 0 / 487.3 MB, free: 2.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003794/0.3091, allocations: 284.3 kB / 487.6 MB, free: 2.473 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.017e-05/0.3091, allocations: 37.69 kB / 487.6 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.3092, allocations: 4 kB / 487.6 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3092, allocations: 4 kB / 487.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.3094, allocations: 55.92 kB / 487.7 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3094, allocations: 7.984 kB / 487.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.77e-05/0.3095, allocations: 12 kB / 487.7 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.3095, allocations: 12 kB / 487.7 MB, free: 2.336 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.0001659/0.3097, allocations: 167.5 kB / 487.9 MB, free: 2.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.3098, allocations: 15.81 kB / 487.9 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.044e-05/0.3098, allocations: 20.75 kB / 487.9 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3098, allocations: 0 / 487.9 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3098, allocations: 3.938 kB / 487.9 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3098, allocations: 3.984 kB / 487.9 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009229/0.3108, allocations: 0.6969 MB / 488.6 MB, free: 1.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3108, allocations: 4 kB / 488.6 MB, free: 1.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.311, allocations: 35.98 kB / 488.6 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.311, allocations: 4 kB / 488.7 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.311, allocations: 15.94 kB / 488.7 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.311, allocations: 64 / 488.7 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.311, allocations: 8 kB / 488.7 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/0.3116, allocations: 476.8 kB / 489.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.3117, allocations: 92.95 kB / 489.2 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.3117, allocations: 12 kB / 489.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.3119, allocations: 16 kB / 489.3 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.931e-05/0.3119, allocations: 19.94 kB / 489.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.312, allocations: 8 kB / 489.3 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.423e-05/0.312, allocations: 106.2 kB / 489.4 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.312, allocations: 0 / 489.4 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003161/0.3124, allocations: 55.94 kB / 489.4 MB, free: 472 kB / 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.0009166/0.3133, allocations: 1.164 MB / 490.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.3137, allocations: 244.3 kB / 490.8 MB, free: 15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3137, allocations: 4.062 kB / 490.9 MB, free: 15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.3139, allocations: 191.3 kB / 491 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.314, allocations: 8.562 kB / 491 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3152, allocations: 0.5879 MB / 491.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.3156, allocations: 0.7363 MB / 492.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.147e-05/0.3156, allocations: 13.55 kB / 492.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.569e-05/0.3157, allocations: 63.42 kB / 492.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3157, allocations: 0 / 492.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01484/0.3306, allocations: 3.16 MB / 495.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.3308, allocations: 179.9 kB / 495.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.012, allocations: 0 / 495.8 MB, free: 10.09 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)