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: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004485/0.004485, allocations: 99.8 kB / 15.73 MB, free: 6.043 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.001331/0.001331, allocations: 202.9 kB / 16.68 MB, free: 5.965 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.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.552/2.552, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 59.91 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2675, allocations: 162.3 MB / 1.242 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004831/0.2724, allocations: 4.02 MB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001838/0.2726, allocations: 151.5 kB / 1.246 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.265e-05/0.2726, allocations: 3.938 kB / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 8.363e-05/0.2727, allocations: 11.98 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/0.2728, allocations: 3.938 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.2731, allocations: 79.69 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.623e-05/0.2731, allocations: 31.91 kB / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.639e-05/0.2732, allocations: 7.984 kB / 1.246 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.2732, allocations: 15.94 kB / 1.246 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.448e-05/0.2733, allocations: 23.91 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.2733, allocations: 0 / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.2735, allocations: 51.81 kB / 1.246 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.2735, allocations: 11.98 kB / 1.246 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.361e-05/0.2736, allocations: 7.984 kB / 1.246 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.2737, allocations: 47.84 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2737, allocations: 0 / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2737, allocations: 0 / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.2737, allocations: 0 / 1.246 GB, free: 5.371 MB / 0.9981 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.0003626/0.2741, allocations: 343.4 kB / 1.247 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2741, allocations: 12.03 kB / 1.247 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.144e-05/0.2742, allocations: 30.75 kB / 1.247 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.499e-05/0.2742, allocations: 0.9375 kB / 1.247 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.2743, allocations: 164.3 kB / 1.247 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.2744, allocations: 30.27 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.2744, allocations: 4.125 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.2745, allocations: 45.67 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.2745, allocations: 4 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.2745, allocations: 4 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.2745, allocations: 0 / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.942e-05/0.2746, allocations: 15.98 kB / 1.247 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.275, allocations: 333.9 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.329e-05/0.275, allocations: 22.55 kB / 1.247 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.468e-05/0.275, allocations: 8.922 kB / 1.247 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.282e-05/0.2751, allocations: 85.11 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.2752, allocations: 34.56 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 2.645e-06/0.2752, allocations: 0 / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001232/0.2753, allocations: 49.56 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.2753, allocations: 55.34 kB / 1.247 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.463e-05/0.2754, allocations: 97.86 kB / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2754, allocations: 25.7 kB / 1.247 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.2755, allocations: 96.2 kB / 1.248 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.827e-06/0.2755, allocations: 0 / 1.248 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.2755, allocations: 13.72 kB / 1.248 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2757, allocations: 318.8 kB / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.2757, allocations: 7.984 kB / 1.248 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.131e-05/0.2758, allocations: 13.91 kB / 1.248 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.991e-05/0.2758, allocations: 25.72 kB / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2758, allocations: 0 / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.915e-05/0.2759, allocations: 53.67 kB / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.2759, allocations: 4 kB / 1.248 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2759, allocations: 3.984 kB / 1.248 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2759, allocations: 4 kB / 1.248 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.633e-05/0.276, allocations: 4 kB / 1.248 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.276, allocations: 0 / 1.248 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.093e-05/0.276, allocations: 7.984 kB / 1.248 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.276, allocations: 8 kB / 1.248 GB, free: 3.199 MB / 0.9981 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.392e-05/0.2761, allocations: 113.7 kB / 1.248 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.2761, allocations: 4 kB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2763, allocations: 113 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.271e-05/0.2763, allocations: 188.2 kB / 1.248 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.293e-05/0.2764, allocations: 180.3 kB / 1.249 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.758e-05/0.2765, allocations: 176.3 kB / 1.249 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.2768, allocations: 413.1 kB / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/0.2768, allocations: 101 kB / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.346e-05/0.2769, allocations: 104.9 kB / 1.249 GB, free: 1.727 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.033e-05/0.277, allocations: 188.2 kB / 1.25 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-05/0.277, allocations: 184.3 kB / 1.25 GB, free: 1.348 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.617e-05/0.2771, allocations: 180.2 kB / 1.25 GB, free: 1.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.413e-05/0.2772, allocations: 176.3 kB / 1.25 GB, free: 0.9844 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.2774, allocations: 315.7 kB / 1.25 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.499e-05/0.2775, allocations: 186 kB / 1.251 GB, free: 456 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.223e-05/0.2776, allocations: 184.2 kB / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.2777, allocations: 112.9 kB / 1.251 GB, free: 144 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.4865/0.7643, allocations: 177.2 kB / 1.251 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.7643, allocations: 102.3 kB / 1.251 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.919e-05/0.7644, allocations: 86.22 kB / 1.251 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.7644, allocations: 1.844 kB / 1.251 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003403/0.7647, allocations: 18.23 kB / 1.251 GB, free: 15.34 MB / 0.9981 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.0003396/0.7651, allocations: 0.8295 MB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.072e-05/0.7652, allocations: 12.27 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.7652, allocations: 0.625 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.934e-06/0.7652, allocations: 1.188 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.7655, allocations: 465.1 kB / 1.252 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006352/0.7661, allocations: 1.32 MB / 1.254 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.356e-05/0.7662, allocations: 0.6736 MB / 1.254 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.683e-05/0.7662, allocations: 5.719 kB / 1.254 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.784e-05/0.7662, allocations: 9.734 kB / 1.254 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of SimCode: time 3.61e-07/0.7663, allocations: 0.8125 kB / 1.254 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9122/1.678, allocations: 1.508 MB / 1.256 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/12.28, allocations: 16.97 kB / 1.256 GB, free: 11.79 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches