Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 109.4 kB / 16.41 MB, free: 6.496 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.001365/0.001365, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.382/2.382, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 71.89 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8277/0.8293, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004841/0.8342, allocations: 4.021 MB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001795/0.8344, allocations: 157.4 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.8344, allocations: 0.8125 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.8346, allocations: 5.484 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.889e-05/0.8347, allocations: 13.36 kB / 1.093 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.835, allocations: 75.66 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.375e-05/0.8351, allocations: 41.42 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.8351, allocations: 3.125 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.968e-05/0.8352, allocations: 15.11 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.831e-05/0.8352, allocations: 15.86 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.8353, allocations: 1.438 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.8354, allocations: 60.83 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.118e-05/0.8355, allocations: 8.188 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.8355, allocations: 10.09 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.8357, allocations: 42.34 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.8357, allocations: 0 / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8357, allocations: 4.594 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.8357, allocations: 0 / 1.093 GB, free: 2.391 MB / 0.8575 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.0003037/0.836, allocations: 333.9 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.836, allocations: 9.281 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.8361, allocations: 2.688 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.943e-05/0.8362, allocations: 166.2 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.8362, allocations: 28.25 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.8362, allocations: 1.594 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.8363, allocations: 56.06 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.8364, allocations: 0 / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.8364, allocations: 4.75 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.8364, allocations: 1.438 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.508e-05/0.8365, allocations: 16.86 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003444/0.8368, allocations: 332.7 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.414e-05/0.8369, allocations: 20.58 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.682e-05/0.8369, allocations: 14.98 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.677e-05/0.8369, allocations: 87.95 kB / 1.094 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.837, allocations: 31.83 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.837, allocations: 0.7188 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.8371, allocations: 37.36 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.879e-05/0.8371, allocations: 52.06 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.048e-05/0.8372, allocations: 102.8 kB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.8372, allocations: 29.83 kB / 1.094 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/0.8373, allocations: 93.25 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.382e-06/0.8373, allocations: 4.688 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-05/0.8373, allocations: 13.94 kB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.679e-05/0.8374, allocations: 317.4 kB / 1.095 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.647e-05/0.8374, allocations: 6.844 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.148e-05/0.8374, allocations: 15.25 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.541e-05/0.8374, allocations: 29.33 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.8375, allocations: 0.7188 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.208e-05/0.8375, allocations: 49.12 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.8376, allocations: 6.109 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.8376, allocations: 0.7188 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.8376, allocations: 0.7188 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.676e-05/0.8376, allocations: 10.61 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.8376, allocations: 0.875 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.8377, allocations: 9.031 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.8377, allocations: 2.922 kB / 1.095 GB, free: 460 kB / 0.8575 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 5.112e-05/0.8377, allocations: 111.7 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.8378, allocations: 3.453 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-05/0.8379, allocations: 122.1 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/0.8379, allocations: 176.8 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.56e-05/0.838, allocations: 182.6 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-05/0.8381, allocations: 185.9 kB / 1.095 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.8383, allocations: 407.2 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.732e-05/0.8383, allocations: 106.5 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.695e-05/0.8384, allocations: 106.7 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.427e-05/0.8385, allocations: 181.9 kB / 1.096 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/0.8385, allocations: 181.8 kB / 1.096 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.153e-05/0.8386, allocations: 178.9 kB / 1.097 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.735e-05/0.8387, allocations: 186 kB / 1.097 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.8388, allocations: 313.3 kB / 1.097 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.306e-05/0.8389, allocations: 188.7 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.494e-05/0.839, allocations: 178.9 kB / 1.097 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.8391, allocations: 108.6 kB / 1.098 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.799e-05/0.8392, allocations: 178 kB / 1.098 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-05/0.8392, allocations: 103.6 kB / 1.098 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.025e-05/0.8393, allocations: 94.02 kB / 1.098 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8393, allocations: 0 / 1.098 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002572/0.8396, allocations: 17.08 kB / 1.098 GB, free: 13.05 MB / 0.8731 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.0002783/0.8399, allocations: 199.5 kB / 1.098 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.159e-05/0.8399, allocations: 7.875 kB / 1.098 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.8399, allocations: 0 / 1.098 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.402e-06/0.84, allocations: 5 kB / 1.098 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.8404, allocations: 463.1 kB / 1.099 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002909/0.8407, allocations: 214.7 kB / 1.099 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.8409, allocations: 0.6745 MB / 1.099 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.8409, allocations: 13.47 kB / 1.099 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/0.8409, allocations: 0 / 1.099 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of Templates: time 0.002652/0.8436, allocations: 0.75 MB / 1.1 GB, free: 11.45 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches