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.001455/0.001455, allocations: 184.1 kB / 7.654 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.464/1.464, allocations: 194.4 MB / 202.4 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03711/0.03711, allocations: 7.895 MB / 255.2 MB, free: 8.262 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.001798/0.001798, allocations: 115 kB / 301.9 MB, free: 32.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.116e-05/2.129e-05, allocations: 4 kB / 354.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2978, allocations: 46.18 MB / 400.6 MB, free: 46.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.4019, allocations: 71.22 MB / 471.8 MB, free: 3.609 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.4021, allocations: 47.98 kB / 471.8 MB, free: 3.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005921/0.4081, allocations: 2.409 MB / 474.2 MB, free: 1.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4081, allocations: 0.7812 kB / 474.2 MB, free: 1.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.4081, allocations: 7.828 kB / 474.3 MB, free: 1.215 MB / 314.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.0004694/0.4086, allocations: 416.8 kB / 474.7 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.4086, allocations: 8.031 kB / 474.7 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.4087, allocations: 20.45 kB / 474.7 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4089, allocations: 174.9 kB / 474.9 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.4089, allocations: 8.781 kB / 474.9 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.4089, allocations: 12 kB / 474.9 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002035/0.4091, allocations: 84.95 kB / 475 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.4094, allocations: 133 kB / 475.1 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4094, allocations: 0.5312 kB / 475.1 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.4095, allocations: 0.7188 kB / 475.1 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.4095, allocations: 4 kB / 475.1 MB, free: 300 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.4105, allocations: 0.6553 MB / 475.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.4109, allocations: 216.5 kB / 476 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.4111, allocations: 88.12 kB / 476.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.4111, allocations: 4.625 kB / 476.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.4112, allocations: 31.72 kB / 476.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.4112, allocations: 0 / 476.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007103/0.4119, allocations: 426.4 kB / 476.5 MB, free: 14.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.4119, allocations: 52.09 kB / 476.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.412, allocations: 109.5 kB / 476.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.412, allocations: 25.7 kB / 476.7 MB, free: 14.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.082e-05/0.4121, allocations: 132.8 kB / 476.8 MB, free: 14.42 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.03e-05/0.4122, allocations: 55.17 kB / 476.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.4122, allocations: 0.9062 kB / 476.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4123, allocations: 319.3 kB / 477.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.294e-05/0.4124, allocations: 40.84 kB / 477.2 MB, free: 14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.884e-05/0.4125, allocations: 80.08 kB / 477.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.227e-05/0.4126, allocations: 50.97 kB / 477.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4126, allocations: 2.844 kB / 477.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002202/0.4128, allocations: 158.3 kB / 477.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.4128, allocations: 4.625 kB / 477.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.4128, allocations: 7.672 kB / 477.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.4129, allocations: 6.109 kB / 477.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.413, allocations: 47.91 kB / 477.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.413, allocations: 8.719 kB / 477.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/0.4131, allocations: 0 / 477.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.4131, allocations: 12 kB / 477.6 MB, free: 13.63 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 9.496e-05/0.4132, allocations: 112.6 kB / 477.7 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000165/0.4134, allocations: 114.1 kB / 477.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.4134, allocations: 11.86 kB / 477.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.4135, allocations: 9.688 kB / 477.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4135, allocations: 4 kB / 477.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4135, allocations: 0 / 477.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.4135, allocations: 4 kB / 477.8 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005596/0.4141, allocations: 449.9 kB / 478.3 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4141, allocations: 0 / 478.3 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.4143, allocations: 39.92 kB / 478.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.4143, allocations: 4 kB / 478.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.4143, allocations: 3.984 kB / 478.3 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4143, allocations: 4 kB / 478.3 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4143, allocations: 2.625 kB / 478.3 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.4146, allocations: 259.3 kB / 478.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.4147, allocations: 88.95 kB / 478.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.4147, allocations: 9.547 kB / 478.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.489e-05/0.4148, allocations: 0 / 478.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.397e-05/0.4148, allocations: 8.031 kB / 478.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.4148, allocations: 8 kB / 478.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.833e-05/0.4149, allocations: 97.02 kB / 478.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4149, allocations: 0 / 478.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002487/0.4151, allocations: 28 kB / 478.8 MB, free: 12.32 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.000529/0.4156, allocations: 0.7903 MB / 479.6 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001875/0.4158, allocations: 104 kB / 479.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4159, allocations: 4 kB / 479.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/0.4159, allocations: 50.33 kB / 479.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.4161, allocations: 7.938 kB / 479.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009584/0.4171, allocations: 487.7 kB / 480.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.4174, allocations: 0.7279 MB / 481 MB, free: 10.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.368e-05/0.4174, allocations: 13.2 kB / 481 MB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.084e-05/0.4175, allocations: 43.42 kB / 481 MB, free: 10.05 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4175, allocations: 0 / 481 MB, free: 10.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02222/0.4397, allocations: 1.979 MB / 483 MB, free: 8.117 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.44, allocations: 161.2 kB / 483.2 MB, free: 7.922 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/1.952, allocations: 1.562 kB / 483.2 MB, free: 7.922 MB / 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)