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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005871/0.005871, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 198.8 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05074/0.05074, allocations: 8.11 MB / 278 MB, free: 13.06 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 72.45 kB / 386.2 MB, free: 9.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2647, allocations: 48.3 MB / 434.5 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002625/0.2674, allocations: 1.89 MB / 436.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002671/0.2677, allocations: 148.4 kB / 436.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.622e-05/0.2677, allocations: 3.281 kB / 436.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.713e-05/0.2678, allocations: 23.81 kB / 436.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.981e-05/0.2679, allocations: 42.52 kB / 436.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.2681, allocations: 46.61 kB / 436.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.2682, allocations: 168.2 kB / 436.8 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.2684, allocations: 93.09 kB / 436.9 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.005e-05/0.2685, allocations: 69.11 kB / 437 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.2686, allocations: 73.27 kB / 437 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.2686, allocations: 16.53 kB / 437.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.489e-05/0.2687, allocations: 16.75 kB / 437.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.527e-05/0.2687, allocations: 38.84 kB / 437.1 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.545e-05/0.2688, allocations: 85.16 kB / 437.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.269, allocations: 187.5 kB / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.269, allocations: 0.6094 kB / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.269, allocations: 1.375 kB / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.351e-06/0.269, allocations: 0 / 437.4 MB, free: 5.621 MB / 318.1 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.0005329/0.2696, allocations: 452 kB / 437.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2696, allocations: 9.625 kB / 437.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.2697, allocations: 52.33 kB / 437.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.2697, allocations: 21.03 kB / 437.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.2698, allocations: 181.8 kB / 438.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.2698, allocations: 11.25 kB / 438.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.2699, allocations: 17.55 kB / 438.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.2701, allocations: 158.4 kB / 438.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2701, allocations: 3.938 kB / 438.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.2702, allocations: 10.34 kB / 438.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2702, allocations: 4.781 kB / 438.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.2704, allocations: 104.6 kB / 438.4 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008203/0.2712, allocations: 0.6806 MB / 439.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004495/0.2716, allocations: 220.7 kB / 439.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.2719, allocations: 91.44 kB / 439.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.2719, allocations: 5.625 kB / 439.4 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.2719, allocations: 35.72 kB / 439.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.2719, allocations: 1 kB / 439.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006757/0.2726, allocations: 482.6 kB / 439.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/0.2726, allocations: 58.25 kB / 439.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.974e-05/0.2727, allocations: 125.7 kB / 440.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.2727, allocations: 29.7 kB / 440.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.371e-05/0.2728, allocations: 136.5 kB / 440.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.2728, allocations: 60.03 kB / 440.3 MB, free: 3.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.243e-05/0.2728, allocations: 41.92 kB / 440.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.2729, allocations: 321 kB / 440.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.273, allocations: 42.64 kB / 440.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/0.2731, allocations: 92.34 kB / 440.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.2732, allocations: 142.2 kB / 440.9 MB, free: 2.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2732, allocations: 1.094 kB / 440.9 MB, free: 2.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000218/0.2735, allocations: 186.5 kB / 441.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2735, allocations: 6.375 kB / 441.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.2735, allocations: 4.969 kB / 441.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.2735, allocations: 6.562 kB / 441.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.2737, allocations: 47 kB / 441.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2737, allocations: 7.25 kB / 441.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.264e-05/0.2738, allocations: 6.094 kB / 441.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.2738, allocations: 5.906 kB / 441.2 MB, free: 2.609 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.379e-05/0.2739, allocations: 137.9 kB / 441.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.2739, allocations: 7.766 kB / 441.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.274, allocations: 19.39 kB / 441.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.274, allocations: 2.25 kB / 441.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.274, allocations: 3.938 kB / 441.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.274, allocations: 2.688 kB / 441.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.2745, allocations: 489.5 kB / 441.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2745, allocations: 9.438 kB / 441.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.2747, allocations: 38.75 kB / 441.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2747, allocations: 1.312 kB / 441.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2747, allocations: 6.078 kB / 441.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2747, allocations: 0 / 441.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2747, allocations: 1.156 kB / 441.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000303/0.2751, allocations: 271.2 kB / 442.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.2751, allocations: 92.72 kB / 442.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.2751, allocations: 9.531 kB / 442.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.69e-05/0.2752, allocations: 0.8438 kB / 442.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.776e-05/0.2752, allocations: 11.91 kB / 442.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.2752, allocations: 8.562 kB / 442.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.548e-05/0.2753, allocations: 90.22 kB / 442.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2753, allocations: 0.5312 kB / 442.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00027/0.2755, allocations: 34.25 kB / 442.4 MB, free: 1.656 MB / 318.1 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.flange_a.phi,inertia1.w) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004384/0.276, allocations: 0.8201 MB / 443.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.2763, allocations: 113 kB / 443.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2763, allocations: 0.5 kB / 443.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.997e-05/0.2763, allocations: 56.34 kB / 443.4 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.2766, allocations: 11.34 kB / 443.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.2784, allocations: 1.993 MB / 445.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.2788, allocations: 0.7143 MB / 446.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.144e-05/0.2789, allocations: 15.2 kB / 446.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.308e-05/0.2789, allocations: 43.08 kB / 446.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2789, allocations: 1.406 kB / 446.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3053, allocations: 2.568 MB / 448.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.148, allocations: 1.094 kB / 448.7 MB, free: 13.89 MB / 334.1 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)