Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 59.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 50.55 MB / 409 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002404/0.2783, allocations: 1.202 MB / 410.2 MB, free: 172 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003358/0.2817, allocations: 2.073 MB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.627e-05/0.2817, allocations: 0 / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.873e-05/0.2818, allocations: 7.938 kB / 412.3 MB, free: 14.08 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001316/0.2831, allocations: 466.5 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.573e-05/0.2831, allocations: 7.984 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.736e-05/0.2832, allocations: 7.938 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.2832, allocations: 0 / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.059e-05/0.2832, allocations: 7.984 kB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.2834, allocations: 12 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.2834, allocations: 3.938 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00087/0.2843, allocations: 0.5073 MB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.2843, allocations: 4 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.2843, allocations: 7.938 kB / 413.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005785/0.2849, allocations: 382.1 kB / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2849, allocations: 0 / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2849, allocations: 0 / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.2849, allocations: 0 / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005027/0.2855, allocations: 422.5 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.2855, allocations: 12.03 kB / 414.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.581e-05/0.2856, allocations: 110 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/0.2857, allocations: 88.16 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.2859, allocations: 247.6 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.533e-05/0.2859, allocations: 154.9 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.998e-05/0.286, allocations: 158.4 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.646e-05/0.2861, allocations: 101 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.2861, allocations: 75.28 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-05/0.2862, allocations: 158.5 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.537e-05/0.2863, allocations: 158.5 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.833e-05/0.2864, allocations: 150.6 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003195/0.2867, allocations: 442 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.2868, allocations: 181 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.2868, allocations: 84.19 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.2869, allocations: 79.28 kB / 416.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001628/0.2871, allocations: 43.41 kB / 416.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.284e-06/0.2871, allocations: 0 / 416.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000131/0.2872, allocations: 41.62 kB / 416.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.2873, allocations: 51.41 kB / 416.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.2874, allocations: 101.9 kB / 416.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.2874, allocations: 25.7 kB / 416.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.2874, allocations: 84.08 kB / 416.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.2875, allocations: 7.953 kB / 416.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.2875, allocations: 17.7 kB / 416.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2876, allocations: 310.8 kB / 416.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.225e-06/0.2877, allocations: 4.125 kB / 416.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.2877, allocations: 4 kB / 416.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.064e-05/0.2877, allocations: 8.797 kB / 417 MB, free: 9.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2877, allocations: 3.938 kB / 417 MB, free: 9.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.828e-05/0.2878, allocations: 37.7 kB / 417 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2878, allocations: 7.984 kB / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2878, allocations: 0 / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.2878, allocations: 0 / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.227e-05/0.2878, allocations: 96 / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.2878, allocations: 4 kB / 417 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.2879, allocations: 4 kB / 417 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.2879, allocations: 0 / 417 MB, free: 9.137 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.975e-05/0.288, allocations: 109.8 kB / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-06/0.288, allocations: 0 / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.288, allocations: 11.08 kB / 417.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.288, allocations: 0 / 417.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.288, allocations: 3.984 kB / 417.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2881, allocations: 0 / 417.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.2882, allocations: 161.6 kB / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2882, allocations: 0 / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.007e-06/0.2882, allocations: 3.984 kB / 417.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2882, allocations: 3.938 kB / 417.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.2882, allocations: 0 / 417.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2882, allocations: 0 / 417.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2882, allocations: 0 / 417.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.347e-05/0.2883, allocations: 61.08 kB / 417.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.2884, allocations: 81.14 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.2884, allocations: 7.984 kB / 417.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.381e-05/0.2884, allocations: 4 kB / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-06/0.2884, allocations: 0 / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-06/0.2884, allocations: 0 / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.2885, allocations: 79.28 kB / 417.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2885, allocations: 3.938 kB / 417.5 MB, free: 8.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.289, allocations: 151.5 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.001485/0.2905, allocations: 1 MB / 418.7 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.9e-05/0.2905, allocations: 4 kB / 418.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2906, allocations: 0 / 418.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.273e-06/0.2906, allocations: 4 kB / 418.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.2907, allocations: 6.5 kB / 418.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.2919, allocations: 1.165 MB / 419.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.2922, allocations: 0.6729 MB / 420.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.74e-05/0.2923, allocations: 12.05 kB / 420.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.2923, allocations: 19.44 kB / 420.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of SimCode: time 2.334e-06/0.2923, allocations: 0 / 420.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.321, allocations: 4.329 MB / 424.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.429, allocations: 64 / 424.9 MB, free: 1.203 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1)