Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 108 kB / 15.6 MB, free: 132 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.001194/0.001194, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.831/2.831, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 68.31 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3661, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.006737/0.3729, allocations: 3.722 MB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002496/0.3732, allocations: 167.4 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.3733, allocations: 0 / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.3734, allocations: 0 / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.495e-05/0.3735, allocations: 7.922 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.374, allocations: 95.17 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.707e-05/0.3741, allocations: 27.92 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/0.3742, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.526e-05/0.3742, allocations: 19.92 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.3743, allocations: 15.92 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.3743, allocations: 0 / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00066/0.375, allocations: 183.4 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.152e-05/0.3751, allocations: 15.98 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.113e-05/0.3751, allocations: 7.938 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.3753, allocations: 52.17 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3753, allocations: 0 / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3753, allocations: 0 / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.3753, allocations: 0 / 1.072 GB, free: 6.082 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.0004108/0.3757, allocations: 331.5 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3758, allocations: 15.97 kB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.3758, allocations: 0.9375 kB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.3759, allocations: 164.4 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.376, allocations: 30.27 kB / 1.073 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-06/0.376, allocations: 4.375 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.3761, allocations: 49.56 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.3761, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.3762, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.3762, allocations: 4 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.502e-05/0.3762, allocations: 11.98 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/0.3767, allocations: 341.9 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.447e-05/0.3768, allocations: 22.58 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.101e-05/0.3768, allocations: 12.86 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-05/0.3769, allocations: 85.09 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3769, allocations: 30.56 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.377, allocations: 3.938 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001519/0.3771, allocations: 37.69 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.3772, allocations: 51.53 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.3773, allocations: 109.8 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3773, allocations: 29.7 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.3773, allocations: 84.14 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.968e-06/0.3774, allocations: 3.906 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.3774, allocations: 17.7 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3775, allocations: 318.8 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.03e-05/0.3776, allocations: 11.94 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.445e-05/0.3776, allocations: 17.72 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.947e-05/0.3776, allocations: 21.7 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3777, allocations: 4 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.296e-05/0.3777, allocations: 45.64 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3778, allocations: 7.984 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3778, allocations: 0 / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3778, allocations: 0 / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.72e-05/0.3779, allocations: 12.06 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3779, allocations: 0 / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.86e-05/0.3779, allocations: 0 / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.3779, allocations: 4 kB / 1.074 GB, free: 3.961 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 9.261e-05/0.378, allocations: 115.2 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.378, allocations: 3.906 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.3782, allocations: 124.9 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.765e-05/0.3783, allocations: 180.3 kB / 1.075 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.96e-05/0.3784, allocations: 184.2 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.509e-05/0.3785, allocations: 180.2 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.3787, allocations: 413.2 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-05/0.3788, allocations: 104.9 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.667e-05/0.3788, allocations: 101 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.385e-05/0.3789, allocations: 184.2 kB / 1.076 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.538e-05/0.379, allocations: 180.3 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.482e-05/0.3791, allocations: 184.2 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.367e-05/0.3792, allocations: 180.2 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.3793, allocations: 307.7 kB / 1.077 GB, free: 1.406 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.3794, allocations: 186.1 kB / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.64e-05/0.3795, allocations: 184.2 kB / 1.077 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.3797, allocations: 109 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.3798, allocations: 176.3 kB / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.3798, allocations: 108.9 kB / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.298e-05/0.3799, allocations: 87.27 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3799, allocations: 4 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002564/0.3801, allocations: 15.88 kB / 1.077 GB, free: 0.5 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.0002951/0.3804, allocations: 203 kB / 1.078 GB, free: 300 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.598e-05/0.3805, allocations: 8.062 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3805, allocations: 4.062 kB / 1.078 GB, free: 288 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.537e-06/0.3805, allocations: 3.938 kB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.381, allocations: 465.2 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002826/0.3813, allocations: 178 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3816, allocations: 0.6729 MB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.972e-05/0.3816, allocations: 8 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.297e-05/0.3816, allocations: 7.438 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/0.3816, allocations: 0 / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of Templates: time 0.003322/0.385, allocations: 0.6488 MB / 1.079 GB, free: 14.27 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches