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.001518/0.001518, allocations: 181.9 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.486/1.486, allocations: 194.3 MB / 207.5 MB, free: 3.445 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05456/0.05456, allocations: 7.91 MB / 260.4 MB, free: 13.79 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.002018/0.002018, allocations: 112.4 kB / 307.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.279e-05, allocations: 8 kB / 361.3 MB, free: 8.613 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2594, allocations: 46.19 MB / 407.5 MB, free: 67.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0875/0.3469, allocations: 71.88 MB / 479.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001291/0.3471, allocations: 51.97 kB / 479.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005718/0.3528, allocations: 2.435 MB / 481.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3529, allocations: 0 / 481.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.3529, allocations: 4 kB / 481.9 MB, free: 8.547 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.0004674/0.3534, allocations: 416.7 kB / 482.3 MB, free: 8.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.3534, allocations: 8.031 kB / 482.3 MB, free: 8.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.074e-05/0.3535, allocations: 50.53 kB / 482.4 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.3535, allocations: 19.77 kB / 482.4 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.3537, allocations: 182.9 kB / 482.6 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.3537, allocations: 12 kB / 482.6 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/0.3538, allocations: 16 kB / 482.6 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.3541, allocations: 149.6 kB / 482.7 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.3541, allocations: 11.84 kB / 482.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.3541, allocations: 4 kB / 482.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.3541, allocations: 4 kB / 482.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.3543, allocations: 99.94 kB / 482.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.3554, allocations: 0.6871 MB / 483.5 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.3558, allocations: 231.6 kB / 483.8 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.356, allocations: 92.72 kB / 483.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.3561, allocations: 7.953 kB / 483.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.3561, allocations: 34.56 kB / 483.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.3561, allocations: 0 / 483.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007818/0.3569, allocations: 449.6 kB / 484.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.3569, allocations: 59.34 kB / 484.4 MB, free: 5.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.203e-05/0.357, allocations: 112.9 kB / 484.5 MB, free: 5.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3571, allocations: 29.64 kB / 484.5 MB, free: 5.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.761e-05/0.3572, allocations: 136 kB / 484.7 MB, free: 5.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.314e-05/0.3572, allocations: 55.17 kB / 484.7 MB, free: 5.445 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.3572, allocations: 8 kB / 484.7 MB, free: 5.438 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3574, allocations: 322.8 kB / 485 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.852e-05/0.3574, allocations: 40 kB / 485.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3575, allocations: 81.08 kB / 485.2 MB, free: 4.977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.3577, allocations: 59.94 kB / 485.2 MB, free: 4.918 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3577, allocations: 0 / 485.2 MB, free: 4.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002321/0.3579, allocations: 169.4 kB / 485.4 MB, free: 4.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.358, allocations: 8 kB / 485.4 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.358, allocations: 3.984 kB / 485.4 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.358, allocations: 4 kB / 485.4 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.3582, allocations: 52.08 kB / 485.5 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.3582, allocations: 4 kB / 485.5 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.482e-05/0.3583, allocations: 4 kB / 485.5 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.3583, allocations: 8 kB / 485.5 MB, free: 4.664 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 () * 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 7.682e-05/0.3584, allocations: 119.6 kB / 485.6 MB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.3584, allocations: 11.86 kB / 485.6 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.328e-05/0.3585, allocations: 20.73 kB / 485.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3585, allocations: 4 kB / 485.6 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3585, allocations: 4 kB / 485.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3585, allocations: 0 / 485.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006857/0.3592, allocations: 498.2 kB / 486.1 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3592, allocations: 0 / 486.1 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.3594, allocations: 39.92 kB / 486.2 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3594, allocations: 0 / 486.2 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.3594, allocations: 4 kB / 486.2 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3594, allocations: 0 / 486.2 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3594, allocations: 4 kB / 486.2 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.3598, allocations: 263.4 kB / 486.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.3598, allocations: 92.98 kB / 486.5 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.3599, allocations: 4 kB / 486.5 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.982e-05/0.3599, allocations: 8 kB / 486.5 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.36, allocations: 15.86 kB / 486.5 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-06/0.36, allocations: 4 kB / 486.5 MB, free: 3.496 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.3601, allocations: 91.28 kB / 486.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3601, allocations: 0 / 486.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002504/0.3603, allocations: 36 kB / 486.7 MB, free: 3.371 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 () * 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.0005853/0.3609, allocations: 0.8139 MB / 487.5 MB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002042/0.3611, allocations: 115.9 kB / 487.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3611, allocations: 0 / 487.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.115e-05/0.3612, allocations: 51.97 kB / 487.6 MB, free: 2.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.3614, allocations: 8 kB / 487.6 MB, free: 2.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.3625, allocations: 0.5042 MB / 488.2 MB, free: 1.824 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.3628, allocations: 0.7243 MB / 488.9 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.495e-05/0.3629, allocations: 13.2 kB / 488.9 MB, free: 1.062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.3629, allocations: 43.42 kB / 488.9 MB, free: 1.02 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.363, allocations: 0 / 488.9 MB, free: 1.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.3766, allocations: 2.287 MB / 491.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.3768, allocations: 176.9 kB / 491.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/1.941, allocations: 8 kB / 491.4 MB, free: 14.6 MB / 346.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)