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.009416/0.009416, allocations: 102.6 kB / 15.73 MB, free: 6.062 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.001809/0.00181, allocations: 193.8 kB / 16.67 MB, free: 5.973 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.708/2.708, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 60.14 kB / 1.054 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7727/0.774, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005388/0.7795, allocations: 4.032 MB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001955/0.7797, allocations: 151.5 kB / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.7797, allocations: 0 / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.115e-05/0.7798, allocations: 0 / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.371e-05/0.7799, allocations: 15.91 kB / 1.212 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.7803, allocations: 90.06 kB / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.737e-05/0.7804, allocations: 27.92 kB / 1.212 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.7805, allocations: 7.938 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.396e-05/0.7805, allocations: 15.92 kB / 1.212 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.7806, allocations: 7.984 kB / 1.212 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.7806, allocations: 4 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.7808, allocations: 59.8 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.7809, allocations: 4 kB / 1.212 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.929e-05/0.7809, allocations: 15.92 kB / 1.212 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.781, allocations: 47.89 kB / 1.212 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7811, allocations: 4 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7811, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.7811, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 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.0003575/0.7814, allocations: 327.4 kB / 1.212 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.7815, allocations: 8.031 kB / 1.212 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.7815, allocations: 12.84 kB / 1.212 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.7816, allocations: 160.4 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.7817, allocations: 30.2 kB / 1.213 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.7817, allocations: 4.375 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.7819, allocations: 49.61 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.7819, allocations: 0 / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.7819, allocations: 3.938 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.7819, allocations: 0 / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.644e-05/0.782, allocations: 19.98 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004377/0.7824, allocations: 334 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.872e-05/0.7825, allocations: 22.52 kB / 1.213 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.7825, allocations: 8.859 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.293e-05/0.7826, allocations: 89.16 kB / 1.213 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.7826, allocations: 34.56 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.7826, allocations: 0 / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001482/0.7828, allocations: 37.69 kB / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.7828, allocations: 51.41 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.25e-05/0.7829, allocations: 109.9 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.7829, allocations: 25.7 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.044e-05/0.783, allocations: 93.86 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.981e-06/0.783, allocations: 3.906 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.783, allocations: 17.72 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.7831, allocations: 314.8 kB / 1.214 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.724e-05/0.7832, allocations: 7.984 kB / 1.214 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.725e-05/0.7832, allocations: 21.72 kB / 1.214 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.563e-05/0.7832, allocations: 13.72 kB / 1.214 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.7832, allocations: 3.938 kB / 1.214 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.598e-05/0.7833, allocations: 53.62 kB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.7833, allocations: 4 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.7834, allocations: 0 / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.7834, allocations: 0 / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.871e-05/0.7834, allocations: 12.05 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.7835, allocations: 8 kB / 1.214 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.7835, allocations: 3.938 kB / 1.214 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.7835, allocations: 0 / 1.214 GB, free: 6.992 MB / 0.9356 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 7.096e-05/0.7836, allocations: 121.7 kB / 1.214 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.7836, allocations: 0 / 1.214 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.7837, allocations: 120.9 kB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.348e-05/0.7838, allocations: 180.3 kB / 1.214 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-05/0.7838, allocations: 188.2 kB / 1.214 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-05/0.7839, allocations: 176.3 kB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.7841, allocations: 409.1 kB / 1.215 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.272e-05/0.7842, allocations: 105 kB / 1.215 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.129e-05/0.7842, allocations: 105 kB / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.02e-05/0.7843, allocations: 188.2 kB / 1.215 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.7844, allocations: 180.3 kB / 1.216 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.363e-05/0.7844, allocations: 180.2 kB / 1.216 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.975e-05/0.7845, allocations: 176.3 kB / 1.216 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.7846, allocations: 319.6 kB / 1.216 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/0.7847, allocations: 178.1 kB / 1.216 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.542e-05/0.7847, allocations: 184.2 kB / 1.217 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.7849, allocations: 109 kB / 1.217 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.785, allocations: 184.2 kB / 1.217 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.785, allocations: 101 kB / 1.217 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.785, allocations: 83.28 kB / 1.217 GB, free: 3.559 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.785, allocations: 0 / 1.217 GB, free: 3.559 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002528/0.7853, allocations: 15.98 kB / 1.217 GB, free: 3.543 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.0002402/0.7856, allocations: 202.5 kB / 1.217 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 7.165e-05/0.7856, allocations: 11.92 kB / 1.217 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.7856, allocations: 4.125 kB / 1.217 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.7856, allocations: 3.938 kB / 1.217 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.786, allocations: 459.7 kB / 1.218 GB, free: 2.863 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.7863, allocations: 182 kB / 1.218 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.7866, allocations: 0.6807 MB / 1.219 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.924e-05/0.7866, allocations: 7.938 kB / 1.219 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.707e-05/0.7866, allocations: 11.44 kB / 1.219 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.7866, allocations: 0 / 1.219 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of Templates: time 0.002782/0.7894, allocations: 0.6408 MB / 1.219 GB, free: 1.301 MB / 0.9356 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