Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",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.004863/0.004863, allocations: 174.4 kB / 15.12 MB, free: 5.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.342/1.342, allocations: 194.5 MB / 210.3 MB, free: 7.539 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0377/0.0377, allocations: 8.096 MB / 263.6 MB, free: 2.148 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.001563/0.001562, allocations: 116.5 kB / 310.6 MB, free: 27.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 8 kB / 367.4 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2401, allocations: 46.19 MB / 413.5 MB, free: 47.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09227/0.3324, allocations: 71.97 MB / 485.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.3327, allocations: 51.97 kB / 485.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006161/0.3388, allocations: 2.432 MB / 488 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3389, allocations: 0 / 488 MB, free: 11.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.3389, allocations: 4 kB / 488 MB, free: 11.3 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005272/0.3394, allocations: 411.5 kB / 488.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.3395, allocations: 8.031 kB / 488.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.366e-05/0.3396, allocations: 58.55 kB / 488.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.3396, allocations: 27.75 kB / 488.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.3398, allocations: 178.8 kB / 488.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.3398, allocations: 16 kB / 488.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.3398, allocations: 19.91 kB / 488.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.3402, allocations: 149.2 kB / 488.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.3402, allocations: 3.984 kB / 488.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.3402, allocations: 8 kB / 488.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.3402, allocations: 4 kB / 488.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.3405, allocations: 99.91 kB / 489 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.3417, allocations: 0.6987 MB / 489.7 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.3422, allocations: 227.5 kB / 489.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.3422, allocations: 7.938 kB / 489.9 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.3422, allocations: 38.52 kB / 489.9 MB, free: 9.168 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.3422, allocations: 0 / 489.9 MB, free: 9.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008317/0.3431, allocations: 483.7 kB / 490.4 MB, free: 8.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.3431, allocations: 55.39 kB / 490.5 MB, free: 8.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.283e-05/0.3432, allocations: 115.9 kB / 490.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.3432, allocations: 25.7 kB / 490.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.941e-05/0.3433, allocations: 128.1 kB / 490.7 MB, free: 8.301 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.3434, allocations: 67.08 kB / 490.8 MB, free: 8.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.944e-06/0.3434, allocations: 4 kB / 490.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3435, allocations: 322.8 kB / 491.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.3436, allocations: 43.98 kB / 491.2 MB, free: 7.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.3437, allocations: 89.12 kB / 491.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.322e-05/0.3438, allocations: 62.3 kB / 491.3 MB, free: 7.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3438, allocations: 0 / 491.3 MB, free: 7.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000252/0.3441, allocations: 181.4 kB / 491.5 MB, free: 7.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3441, allocations: 8 kB / 491.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3441, allocations: 0 / 491.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3441, allocations: 4 kB / 491.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.3443, allocations: 47.91 kB / 491.5 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.3443, allocations: 4 kB / 491.5 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.316e-05/0.3444, allocations: 4 kB / 491.5 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3444, allocations: 8 kB / 491.6 MB, free: 7.441 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001081/0.3445, allocations: 129.9 kB / 491.7 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.3446, allocations: 15.86 kB / 491.7 MB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.3446, allocations: 16.83 kB / 491.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3446, allocations: 0 / 491.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3446, allocations: 4 kB / 491.7 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3447, allocations: 0 / 491.7 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000602/0.3453, allocations: 499.1 kB / 492.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3453, allocations: 0 / 492.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.3455, allocations: 39.92 kB / 492.2 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3455, allocations: 0 / 492.2 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.3455, allocations: 4 kB / 492.2 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3455, allocations: 4 kB / 492.2 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3455, allocations: 0 / 492.2 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.3459, allocations: 288.1 kB / 492.5 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.895e-05/0.3459, allocations: 85.02 kB / 492.6 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.346, allocations: 12 kB / 492.6 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.012e-05/0.346, allocations: 0 / 492.6 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.3461, allocations: 16.03 kB / 492.6 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.3461, allocations: 0 / 492.6 MB, free: 6.254 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.694e-05/0.3461, allocations: 95.2 kB / 492.7 MB, free: 6.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3462, allocations: 0 / 492.7 MB, free: 6.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002486/0.3464, allocations: 36 kB / 492.8 MB, free: 6.125 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0005855/0.347, allocations: 0.8282 MB / 493.6 MB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.3472, allocations: 115.9 kB / 493.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3472, allocations: 4 kB / 493.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.205e-05/0.3473, allocations: 57.33 kB / 493.8 MB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.3475, allocations: 4 kB / 493.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.3493, allocations: 1.883 MB / 495.7 MB, free: 3.137 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.3496, allocations: 0.7243 MB / 496.4 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.689e-05/0.3497, allocations: 13.08 kB / 496.4 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.682e-05/0.3497, allocations: 43.42 kB / 496.4 MB, free: 2.332 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3498, allocations: 0 / 496.4 MB, free: 2.332 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01253/0.3623, allocations: 2.189 MB / 498.6 MB, free: 280 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.3625, allocations: 199.2 kB / 498.8 MB, free: 32 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.431/1.794, allocations: 0 / 498.8 MB, free: 32 kB / 330.7 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)