Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",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.007278/0.007278, allocations: 96.7 kB / 15.73 MB, free: 6.043 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.001888/0.001888, allocations: 196.7 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002577/0.002577, allocations: 286.6 kB / 290.8 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.074/1.074, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002792/0.002792, allocations: 95.84 kB / 0.6943 GB, free: 3.633 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4445/0.4473, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006201/0.4535, allocations: 4.011 MB / 0.7852 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002268/0.4538, allocations: 165.2 kB / 0.7854 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.663e-05/0.4538, allocations: 1.375 kB / 0.7854 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.4539, allocations: 5.172 kB / 0.7854 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.402e-05/0.4541, allocations: 13.33 kB / 0.7854 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.4544, allocations: 78.66 kB / 0.7855 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.242e-05/0.4545, allocations: 34.94 kB / 0.7855 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.326e-05/0.4545, allocations: 2.109 kB / 0.7855 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.409e-05/0.4546, allocations: 22.88 kB / 0.7855 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.245e-05/0.4546, allocations: 12.64 kB / 0.7856 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.4547, allocations: 0 / 0.7856 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.4549, allocations: 58.31 kB / 0.7856 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.4549, allocations: 12.17 kB / 0.7856 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.273e-05/0.455, allocations: 9.172 kB / 0.7856 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.4551, allocations: 41.98 kB / 0.7857 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4551, allocations: 1.531 kB / 0.7857 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.293e-06/0.4551, allocations: 0 / 0.7857 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.4551, allocations: 0 / 0.7857 GB, free: 10.71 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004296/0.4556, allocations: 337.7 kB / 0.786 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.4556, allocations: 11.19 kB / 0.786 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.4556, allocations: 30.75 kB / 0.786 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.4557, allocations: 12.09 kB / 0.786 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.4559, allocations: 165.6 kB / 0.7862 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.4559, allocations: 28.55 kB / 0.7862 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.456, allocations: 9.469 kB / 0.7862 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.4561, allocations: 43.38 kB / 0.7863 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.4561, allocations: 0 / 0.7863 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.4561, allocations: 1.094 kB / 0.7863 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.4561, allocations: 2.312 kB / 0.7863 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.999e-05/0.4562, allocations: 19.66 kB / 0.7863 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.4567, allocations: 333.6 kB / 0.7866 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.095e-05/0.4568, allocations: 19.77 kB / 0.7866 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.748e-05/0.4568, allocations: 10.81 kB / 0.7867 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.15e-05/0.4569, allocations: 84.55 kB / 0.7867 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.4569, allocations: 37.11 kB / 0.7868 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4569, allocations: 0 / 0.7868 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001352/0.4571, allocations: 40.64 kB / 0.7868 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.4571, allocations: 52.06 kB / 0.7869 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.445e-05/0.4572, allocations: 102.9 kB / 0.787 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.4572, allocations: 25.7 kB / 0.787 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.496e-05/0.4573, allocations: 93.94 kB / 0.7871 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.06e-06/0.4573, allocations: 2.031 kB / 0.7871 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.4573, allocations: 15.16 kB / 0.7871 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.4575, allocations: 323.7 kB / 0.7874 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.4575, allocations: 3.297 kB / 0.7874 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.31e-05/0.4575, allocations: 15.86 kB / 0.7874 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/0.4576, allocations: 22.08 kB / 0.7874 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4576, allocations: 0 / 0.7874 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.155e-05/0.4577, allocations: 53.05 kB / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.4577, allocations: 5.734 kB / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.4577, allocations: 1.312 kB / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.4577, allocations: 0 / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.135e-05/0.4577, allocations: 6.953 kB / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.4578, allocations: 1.094 kB / 0.7875 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.291e-05/0.4578, allocations: 9.078 kB / 0.7875 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.4578, allocations: 1.891 kB / 0.7875 GB, free: 8.727 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 8.651e-05/0.4579, allocations: 116.1 kB / 0.7876 GB, free: 8.605 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.4579, allocations: 10.75 kB / 0.7876 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.458, allocations: 117.4 kB / 0.7877 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.448e-05/0.4581, allocations: 178.5 kB / 0.7879 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.708e-05/0.4582, allocations: 182 kB / 0.7881 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.327e-05/0.4583, allocations: 178.3 kB / 0.7883 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002653/0.4586, allocations: 415.8 kB / 0.7887 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.451e-05/0.4586, allocations: 103.2 kB / 0.7888 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.628e-05/0.4587, allocations: 109.6 kB / 0.7889 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.672e-05/0.4587, allocations: 182 kB / 0.789 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-05/0.4588, allocations: 182.5 kB / 0.7892 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.016e-05/0.4589, allocations: 180.7 kB / 0.7894 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.431e-05/0.459, allocations: 183.2 kB / 0.7895 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.4591, allocations: 309.7 kB / 0.7898 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.4593, allocations: 184.4 kB / 0.79 GB, free: 6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.764e-05/0.4593, allocations: 182.8 kB / 0.7902 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.4595, allocations: 110.5 kB / 0.7903 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.824e-05/0.4596, allocations: 180.8 kB / 0.7905 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/0.4597, allocations: 103.1 kB / 0.7906 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.145e-05/0.4597, allocations: 86.03 kB / 0.7907 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4597, allocations: 0 / 0.7907 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002563/0.46, allocations: 20.44 kB / 0.7907 GB, free: 5.332 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0005685/0.4606, allocations: 0.839 MB / 0.7915 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.097e-05/0.4606, allocations: 8.438 kB / 0.7915 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4606, allocations: 3.938 kB / 0.7915 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.924e-06/0.4607, allocations: 1.5 kB / 0.7915 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.4611, allocations: 463.2 kB / 0.7919 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.4621, allocations: 1.321 MB / 0.7932 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.4625, allocations: 0.6736 MB / 0.7939 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.049e-05/0.4625, allocations: 13.39 kB / 0.7939 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.176e-05/0.4625, allocations: 8.656 kB / 0.7939 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of SimCode: time 2.094e-06/0.4625, allocations: 1.344 kB / 0.7939 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.4837, allocations: 1.534 MB / 0.7954 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.256, allocations: 11.58 kB / 0.7954 GB, free: 1.629 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)