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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001526/0.001526, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002035/0.002035, allocations: 192.8 kB / 16.25 MB, free: 6.633 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.833/2.833, allocations: 472.7 MB / 0.7449 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 64.44 kB / 0.9116 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3461, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005259/0.3514, allocations: 4.058 MB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001825/0.3516, allocations: 155.5 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.3517, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.859e-05/0.3518, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.146e-05/0.3519, allocations: 19.91 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.3522, allocations: 70.89 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.453e-05/0.3523, allocations: 31.92 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.3523, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.734e-05/0.3524, allocations: 23.97 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.517e-05/0.3524, allocations: 19.86 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.3524, allocations: 0 / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.3526, allocations: 63.81 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.3527, allocations: 3.984 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.61e-05/0.3527, allocations: 8 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.3528, allocations: 43.89 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3528, allocations: 0 / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.226e-06/0.3528, allocations: 3.984 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.3529, allocations: 0 / 1.072 GB, free: 6.242 MB / 0.8262 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.0003799/0.3532, allocations: 335.8 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3533, allocations: 8.031 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.3533, allocations: 8.844 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3535, allocations: 164.4 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.3535, allocations: 26.27 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.138e-06/0.3535, allocations: 4.375 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.3537, allocations: 53.55 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3537, allocations: 3.984 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3537, allocations: 4 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3537, allocations: 4 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.074e-05/0.3538, allocations: 15.98 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.3542, allocations: 330 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.3542, allocations: 22.5 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.3543, allocations: 4.859 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.607e-05/0.3544, allocations: 89.17 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.3544, allocations: 34.5 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3544, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.3545, allocations: 45.62 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.3546, allocations: 51.41 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.916e-05/0.3547, allocations: 93.86 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.3547, allocations: 25.7 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.3547, allocations: 104.1 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.101e-06/0.3548, allocations: 7.844 kB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.3548, allocations: 13.72 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3549, allocations: 318.8 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.744e-05/0.3549, allocations: 8 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.538e-05/0.355, allocations: 21.7 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.392e-05/0.355, allocations: 21.72 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.355, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.338e-05/0.3551, allocations: 53.62 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.3551, allocations: 4 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.3551, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.3551, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.945e-05/0.3552, allocations: 8 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3552, allocations: 0 / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.3552, allocations: 3.984 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.3552, allocations: 64 / 1.074 GB, free: 4.117 MB / 0.8262 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.082e-05/0.3553, allocations: 119.5 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.3554, allocations: 0 / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.3555, allocations: 124.8 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.356e-05/0.3555, allocations: 180.2 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.694e-05/0.3556, allocations: 184.2 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-05/0.3557, allocations: 180.3 kB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.3559, allocations: 413.1 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.248e-05/0.356, allocations: 101 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.782e-05/0.356, allocations: 101 kB / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.512e-05/0.356, allocations: 180.2 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-05/0.3561, allocations: 192.2 kB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.235e-05/0.3562, allocations: 180.2 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.955e-05/0.3562, allocations: 176.3 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.3564, allocations: 312 kB / 1.076 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.3564, allocations: 186 kB / 1.076 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.24e-05/0.3565, allocations: 188.4 kB / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3567, allocations: 113 kB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.3568, allocations: 180.3 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.3568, allocations: 104.9 kB / 1.077 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.438e-05/0.3568, allocations: 87.28 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3568, allocations: 0 / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002347/0.3571, allocations: 20 kB / 1.077 GB, free: 0.6523 MB / 0.8262 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.0002442/0.3573, allocations: 210.2 kB / 1.077 GB, free: 448 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.543e-05/0.3574, allocations: 11.98 kB / 1.077 GB, free: 436 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3574, allocations: 0 / 1.077 GB, free: 436 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.332e-06/0.3574, allocations: 3.938 kB / 1.077 GB, free: 432 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.3578, allocations: 459.8 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002395/0.3581, allocations: 178 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.3583, allocations: 0.6729 MB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.403e-05/0.3583, allocations: 11.98 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.655e-05/0.3584, allocations: 7.438 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3584, allocations: 0 / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of Templates: time 0.002667/0.361, allocations: 0.6294 MB / 1.079 GB, free: 14.42 MB / 0.8419 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches