Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.007818/0.007818, allocations: 95.86 kB / 15.73 MB, free: 6.484 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.001673/0.001673, allocations: 191.3 kB / 16.67 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.483/1.483, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.666/2.666, allocations: 437 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 63.89 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2907, allocations: 151.6 MB / 1.167 GB, free: 6.801 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005071/0.2958, allocations: 4.023 MB / 1.171 GB, free: 2.75 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001922/0.296, allocations: 155.5 kB / 1.171 GB, free: 2.598 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.2961, allocations: 4 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.423e-05/0.2962, allocations: 3.938 kB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.527e-05/0.2963, allocations: 11.92 kB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.2966, allocations: 79.75 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.538e-05/0.2967, allocations: 35.84 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.2967, allocations: 4 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.454e-05/0.2968, allocations: 11.94 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.954e-05/0.2969, allocations: 15.97 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.2969, allocations: 4 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.2971, allocations: 55.81 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.958e-05/0.2971, allocations: 7.984 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.092e-05/0.2972, allocations: 15.92 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.2973, allocations: 39.89 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2973, allocations: 0 / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.105e-06/0.2973, allocations: 0 / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.2973, allocations: 3.938 kB / 1.171 GB, free: 2.309 MB / 0.92 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.000375/0.2977, allocations: 335.4 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2977, allocations: 16.03 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.591e-05/0.2978, allocations: 0.9375 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.2979, allocations: 164.4 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.298, allocations: 30.27 kB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.298, allocations: 384 / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.2981, allocations: 45.61 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.2981, allocations: 0 / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.2982, allocations: 0 / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.2982, allocations: 4 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.707e-05/0.2982, allocations: 23.92 kB / 1.172 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004459/0.2987, allocations: 338 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.248e-05/0.2987, allocations: 14.58 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.658e-05/0.2988, allocations: 8.922 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.468e-05/0.2989, allocations: 81.11 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.2989, allocations: 34.56 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 2.354e-06/0.2989, allocations: 3.984 kB / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001432/0.299, allocations: 45.62 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.2991, allocations: 51.41 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.2992, allocations: 105.8 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.2992, allocations: 29.69 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.2993, allocations: 88.03 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.571e-06/0.2993, allocations: 0 / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.2993, allocations: 21.8 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2994, allocations: 318.8 kB / 1.173 GB, free: 336 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.116e-05/0.2995, allocations: 11.98 kB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.418e-05/0.2995, allocations: 13.72 kB / 1.173 GB, free: 304 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.612e-05/0.2995, allocations: 25.66 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2995, allocations: 0 / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.731e-05/0.2996, allocations: 49.69 kB / 1.173 GB, free: 216 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.2997, allocations: 4 kB / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2997, allocations: 0 / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2997, allocations: 4 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.669e-05/0.2997, allocations: 11.92 kB / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.2997, allocations: 0 / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.2998, allocations: 0 / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2998, allocations: 7.938 kB / 1.173 GB, free: 188 kB / 0.92 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 6.787e-05/0.2999, allocations: 113.8 kB / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.2999, allocations: 8.062 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.3, allocations: 113 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-05/0.3001, allocations: 184.2 kB / 1.173 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.479e-05/0.3002, allocations: 176.3 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.263e-05/0.3002, allocations: 188.2 kB / 1.173 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.3005, allocations: 409.2 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.249e-05/0.3005, allocations: 101 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.133e-05/0.3005, allocations: 108.9 kB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.584e-05/0.3006, allocations: 184.2 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-05/0.3007, allocations: 180.2 kB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.986e-05/0.3007, allocations: 176.3 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.737e-05/0.3008, allocations: 180.3 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.3009, allocations: 315.6 kB / 1.175 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/0.301, allocations: 186 kB / 1.175 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.3011, allocations: 176.3 kB / 1.175 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.3013, allocations: 113 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.3013, allocations: 184.2 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.146e-05/0.3014, allocations: 101 kB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.842e-05/0.3014, allocations: 91.27 kB / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3015, allocations: 0 / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002422/0.3017, allocations: 15.94 kB / 1.176 GB, free: 12.73 MB / 0.9356 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.000235/0.3019, allocations: 202.4 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 7.208e-05/0.302, allocations: 19.92 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.302, allocations: 3.938 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.443e-06/0.302, allocations: 0 / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.3024, allocations: 459.8 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/0.3027, allocations: 185.9 kB / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.303, allocations: 0.6768 MB / 1.177 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.941e-05/0.303, allocations: 4 kB / 1.177 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.891e-05/0.303, allocations: 11.44 kB / 1.177 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of SimCode: time 2.355e-06/0.3031, allocations: 4 kB / 1.177 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of Templates: time 0.002772/0.3058, allocations: 0.6365 MB / 1.178 GB, free: 10.48 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches