Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_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.001214/0.001214, allocations: 105.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.00117, allocations: 193.9 kB / 16.64 MB, free: 6.453 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.506/1.506, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.844/1.844, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.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: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 65.58 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2592, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005691/0.265, allocations: 4.016 MB / 0.7875 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002008/0.2652, allocations: 147.5 kB / 0.7877 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.925e-05/0.2653, allocations: 0 / 0.7877 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.2654, allocations: 11.94 kB / 0.7877 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.795e-05/0.2655, allocations: 11.91 kB / 0.7877 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.2659, allocations: 75.7 kB / 0.7878 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.439e-05/0.2659, allocations: 35.84 kB / 0.7878 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.625e-05/0.266, allocations: 4 kB / 0.7878 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.843e-05/0.266, allocations: 11.94 kB / 0.7878 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.962e-05/0.2661, allocations: 15.97 kB / 0.7878 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.2662, allocations: 0 / 0.7878 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.2664, allocations: 59.81 kB / 0.7879 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.079e-05/0.2664, allocations: 7.938 kB / 0.7879 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.763e-05/0.2664, allocations: 11.92 kB / 0.7879 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.2666, allocations: 40.19 kB / 0.788 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2666, allocations: 0 / 0.788 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.327e-06/0.2666, allocations: 0 / 0.788 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.2666, allocations: 3.938 kB / 0.788 GB, free: 8.801 MB / 0.6075 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.0003866/0.267, allocations: 339.5 kB / 0.7883 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.267, allocations: 12.03 kB / 0.7883 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.2671, allocations: 30.75 kB / 0.7883 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.2671, allocations: 4.938 kB / 0.7883 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2672, allocations: 164.4 kB / 0.7885 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/0.2673, allocations: 26.27 kB / 0.7885 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.2673, allocations: 4.125 kB / 0.7885 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.2675, allocations: 49.67 kB / 0.7886 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2675, allocations: 0 / 0.7886 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2675, allocations: 0 / 0.7886 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.2675, allocations: 3.938 kB / 0.7886 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.837e-05/0.2676, allocations: 23.98 kB / 0.7886 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004229/0.268, allocations: 333.9 kB / 0.7889 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.112e-05/0.268, allocations: 22.56 kB / 0.7889 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/0.2681, allocations: 8.891 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.732e-05/0.2682, allocations: 81.17 kB / 0.789 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.2682, allocations: 42.5 kB / 0.7891 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.2682, allocations: 0 / 0.7891 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1): time 0.0001446/0.2683, allocations: 37.69 kB / 0.7891 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.2684, allocations: 51.41 kB / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.2685, allocations: 101.8 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.2685, allocations: 25.7 kB / 0.7893 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.2686, allocations: 88.12 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.314e-06/0.2686, allocations: 7.906 kB / 0.7894 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.2686, allocations: 9.844 kB / 0.7894 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2687, allocations: 326.8 kB / 0.7897 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.52e-05/0.2688, allocations: 4 kB / 0.7897 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.664e-05/0.2688, allocations: 17.7 kB / 0.7897 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.516e-05/0.2688, allocations: 25.66 kB / 0.7897 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2688, allocations: 3.938 kB / 0.7897 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.037e-05/0.2689, allocations: 53.62 kB / 0.7898 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.269, allocations: 8 kB / 0.7898 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.269, allocations: 0 / 0.7898 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.269, allocations: 3.938 kB / 0.7898 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.284e-05/0.269, allocations: 4 kB / 0.7898 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.269, allocations: 0 / 0.7898 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.964e-05/0.2691, allocations: 4 kB / 0.7898 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2691, allocations: 3.984 kB / 0.7898 GB, free: 6.633 MB / 0.6075 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 7.254e-05/0.2692, allocations: 113.8 kB / 0.7899 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.2692, allocations: 7.906 kB / 0.7899 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.2693, allocations: 124.8 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.257e-05/0.2694, allocations: 180.2 kB / 0.7902 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.04e-05/0.2695, allocations: 180.3 kB / 0.7904 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.984e-05/0.2696, allocations: 184.2 kB / 0.7905 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002515/0.2698, allocations: 409.2 kB / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-05/0.2699, allocations: 104.9 kB / 0.791 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.27, allocations: 105 kB / 0.7911 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.467e-05/0.2701, allocations: 176.3 kB / 0.7913 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.882e-05/0.2702, allocations: 188.2 kB / 0.7915 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001087/0.2703, allocations: 176.3 kB / 0.7917 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.706e-05/0.2704, allocations: 188.2 kB / 0.7918 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.2705, allocations: 307.7 kB / 0.7921 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.614e-05/0.2706, allocations: 182.1 kB / 0.7923 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.2707, allocations: 180.3 kB / 0.7925 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.2709, allocations: 112.9 kB / 0.7926 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.271, allocations: 180.3 kB / 0.7928 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.2711, allocations: 104.9 kB / 0.7929 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.188e-05/0.2711, allocations: 87.28 kB / 0.7929 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2712, allocations: 0 / 0.7929 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002811/0.2714, allocations: 19.88 kB / 0.793 GB, free: 3.172 MB / 0.6075 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.0008345/0.2723, allocations: 0.8322 MB / 0.7938 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.721e-05/0.2724, allocations: 11.94 kB / 0.7938 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2724, allocations: 0 / 0.7938 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.183e-06/0.2724, allocations: 128 / 0.7938 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.2728, allocations: 463.7 kB / 0.7942 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.2739, allocations: 1.328 MB / 0.7955 GB, free: 440 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2741, allocations: 0.6767 MB / 0.7962 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 3.798e-05/0.2742, allocations: 11.98 kB / 0.7962 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.216e-05/0.2742, allocations: 7.438 kB / 0.7962 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of SimCode: time 2e-07/0.2742, allocations: 0 / 0.7962 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.2934, allocations: 1.451 MB / 0.7976 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/7.962, allocations: 6.75 kB / 0.7976 GB, free: 14.34 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)