Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.627/1.627, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 170.4 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 0.5777 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007852/0.000785, allocations: 95.95 kB / 0.6822 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004046, allocations: 9.594 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2603, allocations: 106.3 MB / 0.9003 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003471/0.2638, allocations: 3.579 MB / 0.9038 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0001344/0.264, allocations: 135.7 kB / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.252e-05/0.264, allocations: 0 / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.553e-05/0.2641, allocations: 3.938 kB / 0.9039 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.828e-05/0.2642, allocations: 19.97 kB / 0.9039 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.2644, allocations: 47.8 kB / 0.904 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.875e-05/0.2645, allocations: 51.77 kB / 0.904 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.62e-05/0.2646, allocations: 4 kB / 0.904 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 3.381e-05/0.2646, allocations: 15.97 kB / 0.904 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.223e-05/0.2647, allocations: 7.938 kB / 0.9041 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.2647, allocations: 0 / 0.9041 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.2649, allocations: 31.91 kB / 0.9041 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.122e-05/0.2649, allocations: 7.984 kB / 0.9041 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.95e-05/0.2649, allocations: 29.7 kB / 0.9041 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.478e-05/0.265, allocations: 23.98 kB / 0.9041 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.265, allocations: 7.938 kB / 0.9042 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.265, allocations: 0 / 0.9042 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.2651, allocations: 4 kB / 0.9042 GB, free: 59.83 MB / 0.6042 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.0003547/0.2654, allocations: 327.6 kB / 0.9045 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.2655, allocations: 8.031 kB / 0.9045 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.523e-05/0.2655, allocations: 30.56 kB / 0.9045 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.2655, allocations: 7.953 kB / 0.9045 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.558e-05/0.2656, allocations: 163.1 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.23e-05/0.2657, allocations: 33.7 kB / 0.9047 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.2657, allocations: 0 / 0.9047 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.2659, allocations: 45.67 kB / 0.9047 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.2659, allocations: 0 / 0.9047 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2659, allocations: 0 / 0.9047 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.2659, allocations: 7.953 kB / 0.9048 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.976e-05/0.266, allocations: 19.86 kB / 0.9048 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.2664, allocations: 334 kB / 0.9051 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 3.307e-05/0.2664, allocations: 22.58 kB / 0.9051 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.676e-05/0.2664, allocations: 8.859 kB / 0.9051 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.011e-05/0.2665, allocations: 89.16 kB / 0.9052 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.2665, allocations: 34.52 kB / 0.9052 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.2665, allocations: 0 / 0.9052 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=1): time 0.0001404/0.2667, allocations: 37.64 kB / 0.9053 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.2667, allocations: 55.53 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.34e-05/0.2668, allocations: 105.8 kB / 0.9054 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.2668, allocations: 25.7 kB / 0.9055 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.967e-05/0.2668, allocations: 88.05 kB / 0.9055 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.863e-06/0.2669, allocations: 7.938 kB / 0.9055 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.2669, allocations: 0 / 0.9055 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.2669, allocations: 314.8 kB / 0.9058 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.2669, allocations: 4 kB / 0.9058 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.064e-05/0.267, allocations: 25.89 kB / 0.9059 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.877e-05/0.267, allocations: 4 kB / 0.9059 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.267, allocations: 3.938 kB / 0.9059 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.043e-05/0.2671, allocations: 45.69 kB / 0.9059 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2671, allocations: 7.953 kB / 0.9059 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2671, allocations: 7.984 kB / 0.9059 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2671, allocations: 0 / 0.9059 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.369e-05/0.2672, allocations: 12.05 kB / 0.906 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2672, allocations: 0 / 0.906 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.863e-05/0.2672, allocations: 7.844 kB / 0.906 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.2672, allocations: 4 kB / 0.906 GB, free: 57.7 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.942e-05/0.2673, allocations: 105.8 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.2673, allocations: 4 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.813e-05/0.2674, allocations: 124.9 kB / 0.9062 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/0.2675, allocations: 188.2 kB / 0.9064 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.614e-05/0.2675, allocations: 176.3 kB / 0.9065 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/0.2675, allocations: 176.3 kB / 0.9067 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.2677, allocations: 409.2 kB / 0.9071 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/0.2677, allocations: 101 kB / 0.9072 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.929e-05/0.2677, allocations: 104.9 kB / 0.9073 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.154e-05/0.2678, allocations: 188.2 kB / 0.9075 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.2678, allocations: 180.3 kB / 0.9076 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.562e-05/0.2679, allocations: 184.2 kB / 0.9078 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.097e-05/0.2679, allocations: 180.3 kB / 0.908 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.621e-05/0.268, allocations: 311.8 kB / 0.9083 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.268, allocations: 178.1 kB / 0.9085 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.622e-05/0.2681, allocations: 184.1 kB / 0.9086 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.2682, allocations: 109 kB / 0.9087 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.2683, allocations: 188.2 kB / 0.9089 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.2683, allocations: 112.9 kB / 0.909 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.946e-05/0.2683, allocations: 83.27 kB / 0.9091 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2683, allocations: 0 / 0.9091 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002653/0.2686, allocations: 12 kB / 0.9091 GB, free: 54.25 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002729/0.2689, allocations: 0.8322 MB / 0.9099 GB, free: 53.39 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 6.073e-05/0.269, allocations: 15.98 kB / 0.9099 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.269, allocations: 0 / 0.9099 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.392e-06/0.269, allocations: 0 / 0.9099 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.2693, allocations: 0.5262 MB / 0.9105 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.2696, allocations: 221.7 kB / 0.9107 GB, free: 52.59 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.2698, allocations: 0.677 MB / 0.9113 GB, free: 51.88 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.161e-05/0.2698, allocations: 4 kB / 0.9113 GB, free: 51.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.2698, allocations: 11.44 kB / 0.9113 GB, free: 51.87 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.2698, allocations: 0 / 0.9113 GB, free: 51.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01192/0.2818, allocations: 1.202 MB / 0.9125 GB, free: 50.84 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.282, allocations: 201.8 kB / 0.9127 GB, free: 50.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/1.806, allocations: 11.88 kB / 0.9127 GB, free: 50.59 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)