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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001626/0.001626, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001851/0.001852, allocations: 190.4 kB / 16.14 MB, free: 6.645 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.43/1.43, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.838/2.838, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 66 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3716, allocations: 157.4 MB / 1.052 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006123/0.3778, allocations: 4.071 MB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001982/0.378, allocations: 159.5 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.862e-05/0.3781, allocations: 0 / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.3782, allocations: 0 / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.115e-05/0.3783, allocations: 19.86 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.3786, allocations: 74.89 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.516e-05/0.3787, allocations: 51.88 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.981e-05/0.3788, allocations: 7.984 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.3788, allocations: 19.94 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.11e-05/0.3789, allocations: 11.97 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.3789, allocations: 7.938 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.3792, allocations: 71.8 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.555e-05/0.3793, allocations: 11.97 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.639e-05/0.3793, allocations: 8 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.3795, allocations: 39.89 kB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3795, allocations: 0 / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3795, allocations: 4 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.804e-06/0.3795, allocations: 4 kB / 1.057 GB, free: 4.262 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.0004414/0.3799, allocations: 335.8 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.38, allocations: 8.031 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.38, allocations: 0.9375 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.3802, allocations: 176.2 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.3803, allocations: 26.27 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.817e-06/0.3803, allocations: 384 / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.3804, allocations: 49.62 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.3805, allocations: 0 / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3805, allocations: 0 / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.3805, allocations: 3.984 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.692e-05/0.3806, allocations: 12 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.3811, allocations: 334 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.241e-05/0.3812, allocations: 22.52 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.267e-05/0.3812, allocations: 12.8 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.278e-05/0.3813, allocations: 85.16 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.3814, allocations: 34.56 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3814, allocations: 0 / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001955/0.3816, allocations: 37.64 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.3816, allocations: 55.39 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.775e-05/0.3817, allocations: 101.9 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.3818, allocations: 33.77 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.012e-05/0.3818, allocations: 87.98 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.941e-06/0.3819, allocations: 3.984 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.3819, allocations: 17.72 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.382, allocations: 318.8 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.382, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.536e-05/0.3821, allocations: 17.7 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.646e-05/0.3821, allocations: 29.66 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3821, allocations: 0 / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.264e-05/0.3822, allocations: 49.59 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3822, allocations: 8 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3822, allocations: 0 / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3823, allocations: 0 / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.985e-05/0.3823, allocations: 4 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.3823, allocations: 3.938 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.3824, allocations: 8.062 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.3824, allocations: 0 / 1.058 GB, free: 2.148 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.304e-05/0.3825, allocations: 125.8 kB / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.3825, allocations: 288 / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.3826, allocations: 113 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-05/0.3827, allocations: 184.2 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001003/0.3828, allocations: 184.2 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-05/0.3829, allocations: 180.3 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.3831, allocations: 409.1 kB / 1.059 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/0.3832, allocations: 101 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.44e-05/0.3832, allocations: 116.9 kB / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.648e-05/0.3833, allocations: 180.3 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.3834, allocations: 176.3 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.008e-05/0.3834, allocations: 184.2 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.068e-05/0.3835, allocations: 180.5 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.3837, allocations: 311.7 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.606e-05/0.3838, allocations: 193.9 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.31e-05/0.3839, allocations: 176.3 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.384, allocations: 105 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.46e-05/0.3841, allocations: 192.2 kB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.3842, allocations: 108.9 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.474e-05/0.3842, allocations: 83.22 kB / 1.061 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3842, allocations: 4 kB / 1.061 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002592/0.3845, allocations: 16 kB / 1.061 GB, free: 14.68 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.000437/0.3849, allocations: 206.4 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.82e-05/0.385, allocations: 11.94 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.385, allocations: 0 / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.765e-06/0.385, allocations: 4.109 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.3855, allocations: 0.5295 MB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.3858, allocations: 171.7 kB / 1.062 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3861, allocations: 0.677 MB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.207e-05/0.3861, allocations: 7.938 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.783e-05/0.3861, allocations: 15.42 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3861, allocations: 0 / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of Templates: time 0.002606/0.3887, allocations: 0.5971 MB / 1.064 GB, free: 12.4 MB / 0.8262 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