Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_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.001553/0.001554, allocations: 109.7 kB / 16.37 MB, free: 6.473 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.001703/0.001703, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.499/2.499, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 61.28 kB / 0.8773 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3401, allocations: 153 MB / 1.027 GB, free: 2.105 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006373/0.3466, allocations: 4.024 MB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000197/0.3468, allocations: 155.5 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.845e-05/0.3468, allocations: 0 / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.347, allocations: 7.938 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.82e-05/0.3471, allocations: 15.92 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.3474, allocations: 82.44 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.29e-05/0.3475, allocations: 39.84 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.3475, allocations: 7.938 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.667e-05/0.3476, allocations: 11.98 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.483e-05/0.3477, allocations: 15.92 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.3477, allocations: 0 / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.3479, allocations: 59.75 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.3479, allocations: 11.97 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.36e-05/0.348, allocations: 11.94 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.3481, allocations: 39.97 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3481, allocations: 0 / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3482, allocations: 4 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.3482, allocations: 0 / 1.031 GB, free: 13.6 MB / 0.8106 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.0004741/0.3486, allocations: 335.5 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.3487, allocations: 12.03 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.3488, allocations: 0.9375 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.3489, allocations: 164.3 kB / 1.032 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-05/0.349, allocations: 30.27 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.349, allocations: 8.297 kB / 1.032 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.3492, allocations: 53.61 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3492, allocations: 0 / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.3492, allocations: 0 / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.3492, allocations: 7.938 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.832e-05/0.3493, allocations: 11.98 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005333/0.3498, allocations: 334 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.412e-05/0.3499, allocations: 14.58 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.882e-05/0.3499, allocations: 16.92 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.35, allocations: 81.11 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3501, allocations: 30.56 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3501, allocations: 3.938 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001701/0.3503, allocations: 37.69 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.3503, allocations: 51.41 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3504, allocations: 106 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.3504, allocations: 29.7 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.3505, allocations: 87.98 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.871e-06/0.3505, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.3506, allocations: 21.62 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3507, allocations: 314.8 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.778e-05/0.3508, allocations: 7.984 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.298e-05/0.3508, allocations: 17.72 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.69e-05/0.3509, allocations: 21.66 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3509, allocations: 4 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.766e-05/0.3509, allocations: 49.62 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.351, allocations: 4 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.351, allocations: 3.938 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.351, allocations: 4 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.625e-05/0.351, allocations: 7.984 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3511, allocations: 4.062 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.787e-05/0.3511, allocations: 0 / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.3511, allocations: 8 kB / 1.033 GB, free: 11.48 MB / 0.8106 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.262e-05/0.3512, allocations: 113.7 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.3512, allocations: 4 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.3513, allocations: 120.9 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-05/0.3514, allocations: 188.3 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.503e-05/0.3515, allocations: 180.2 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.898e-05/0.3515, allocations: 180.2 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.3518, allocations: 409.2 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.558e-05/0.3518, allocations: 108.9 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.182e-05/0.3519, allocations: 101 kB / 1.034 GB, free: 9.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.853e-05/0.3519, allocations: 188.2 kB / 1.034 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/0.352, allocations: 180.2 kB / 1.035 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.618e-05/0.3521, allocations: 176.3 kB / 1.035 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.839e-05/0.3522, allocations: 180.2 kB / 1.035 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.3523, allocations: 319.6 kB / 1.035 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.3524, allocations: 182.1 kB / 1.035 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.798e-05/0.3525, allocations: 176.3 kB / 1.036 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.3526, allocations: 116.9 kB / 1.036 GB, free: 8.414 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.3527, allocations: 180.3 kB / 1.036 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/0.3528, allocations: 104.9 kB / 1.036 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.85e-05/0.3528, allocations: 95.27 kB / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3528, allocations: 0 / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002406/0.3531, allocations: 16 kB / 1.036 GB, free: 8.012 MB / 0.8106 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.0002726/0.3534, allocations: 194.4 kB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.478e-05/0.3534, allocations: 7.984 kB / 1.036 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3535, allocations: 4.125 kB / 1.036 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.3535, allocations: 4 kB / 1.036 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.3539, allocations: 463.9 kB / 1.037 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002593/0.3541, allocations: 177.9 kB / 1.037 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3544, allocations: 0.6768 MB / 1.038 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.737e-05/0.3544, allocations: 11.98 kB / 1.038 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.3545, allocations: 11.44 kB / 1.038 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3545, allocations: 0 / 1.038 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of Templates: time 0.002951/0.3574, allocations: 0.6392 MB / 1.038 GB, free: 5.785 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches