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.007945/0.007945, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001953/0.001953, allocations: 194 kB / 16.67 MB, free: 5.969 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.479/1.479, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04422/0.04422, allocations: 8.105 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.001534/0.001534, allocations: 68.23 kB / 386.2 MB, free: 9.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2796, allocations: 48.3 MB / 434.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003102/0.2828, allocations: 1.899 MB / 436.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003352/0.2832, allocations: 146.1 kB / 436.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.919e-05/0.2833, allocations: 3.344 kB / 436.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.849e-05/0.2833, allocations: 24.48 kB / 436.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.2835, allocations: 39.17 kB / 436.6 MB, free: 6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.2836, allocations: 48.17 kB / 436.6 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.2838, allocations: 168.8 kB / 436.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.284, allocations: 87.84 kB / 436.9 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.126e-05/0.2841, allocations: 66.41 kB / 437 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.2842, allocations: 74.27 kB / 437 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.2843, allocations: 15.84 kB / 437 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.2843, allocations: 16.84 kB / 437.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.2844, allocations: 38.94 kB / 437.1 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.922e-05/0.2845, allocations: 81.62 kB / 437.2 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.2847, allocations: 191.2 kB / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2847, allocations: 0.9062 kB / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2847, allocations: 0 / 437.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.2848, allocations: 4 kB / 437.4 MB, free: 5.617 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.0005116/0.2853, allocations: 449.3 kB / 437.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.2853, allocations: 9.156 kB / 437.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.2854, allocations: 56.8 kB / 437.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.2854, allocations: 16.44 kB / 437.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.759e-05/0.2855, allocations: 178.5 kB / 438.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2856, allocations: 12.59 kB / 438.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2856, allocations: 28.17 kB / 438.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.2859, allocations: 154 kB / 438.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2859, allocations: 5.594 kB / 438.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.2859, allocations: 13.03 kB / 438.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2859, allocations: 4.875 kB / 438.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.2861, allocations: 103.1 kB / 438.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008819/0.287, allocations: 0.6811 MB / 439.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.2874, allocations: 221.3 kB / 439.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.2876, allocations: 90.88 kB / 439.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.2876, allocations: 2.375 kB / 439.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.2876, allocations: 36.62 kB / 439.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.2877, allocations: 0 / 439.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007355/0.2884, allocations: 483.4 kB / 439.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.2884, allocations: 61.69 kB / 439.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.253e-05/0.2885, allocations: 121.7 kB / 440.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.2885, allocations: 29.7 kB / 440.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.759e-05/0.2886, allocations: 131.3 kB / 440.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.2886, allocations: 64.81 kB / 440.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.433e-05/0.2887, allocations: 36.98 kB / 440.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.727e-05/0.2887, allocations: 325.8 kB / 440.6 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.2888, allocations: 43.2 kB / 440.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.982e-05/0.289, allocations: 93.67 kB / 440.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2891, allocations: 140.3 kB / 440.9 MB, free: 2.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2891, allocations: 1.062 kB / 440.9 MB, free: 2.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002322/0.2894, allocations: 181.9 kB / 441.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2894, allocations: 5.281 kB / 441.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2894, allocations: 6.391 kB / 441.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2894, allocations: 5.938 kB / 441.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.2896, allocations: 47.03 kB / 441.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.2896, allocations: 10.89 kB / 441.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.827e-05/0.2897, allocations: 6.25 kB / 441.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.2897, allocations: 7.156 kB / 441.2 MB, free: 2.602 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 7.556e-05/0.2898, allocations: 134 kB / 441.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.2898, allocations: 8.266 kB / 441.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.2899, allocations: 18.89 kB / 441.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2899, allocations: 6.062 kB / 441.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2899, allocations: 4.688 kB / 441.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2899, allocations: 1.828 kB / 441.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005594/0.2905, allocations: 485.6 kB / 441.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2905, allocations: 6 kB / 441.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.2907, allocations: 45.92 kB / 441.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2907, allocations: 1.031 kB / 441.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.2907, allocations: 2 kB / 441.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2907, allocations: 5.062 kB / 441.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2907, allocations: 0.6562 kB / 441.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003842/0.2911, allocations: 272.4 kB / 442.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.2912, allocations: 92.38 kB / 442.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.2912, allocations: 8.875 kB / 442.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.189e-05/0.2913, allocations: 1.219 kB / 442.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.922e-05/0.2913, allocations: 14.59 kB / 442.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.2913, allocations: 3.094 kB / 442.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.265e-05/0.2914, allocations: 94.83 kB / 442.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2914, allocations: 4.875 kB / 442.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.2917, allocations: 34.47 kB / 442.4 MB, free: 1.645 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.0005441/0.2922, allocations: 0.817 MB / 443.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.2925, allocations: 115 kB / 443.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2926, allocations: 0 / 443.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.126e-05/0.2926, allocations: 60.77 kB / 443.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.2929, allocations: 6.125 kB / 443.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.2951, allocations: 1.988 MB / 445.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.2954, allocations: 0.7155 MB / 446.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.459e-05/0.2954, allocations: 11.34 kB / 446.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.81e-05/0.2955, allocations: 43.53 kB / 446.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2955, allocations: 0 / 446.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3169, allocations: 2.573 MB / 448.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.266, allocations: 1.25 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)