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: "" <> 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.001256/0.001256, 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.001128/0.001128, allocations: 193.7 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.233/1.233, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.469/2.469, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 64.73 kB / 0.8992 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2684, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004615/0.2731, allocations: 4.021 MB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001655/0.2732, allocations: 151.5 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.218e-05/0.2733, allocations: 4 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.176e-05/0.2734, allocations: 11.88 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.388e-05/0.2734, allocations: 7.984 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.2738, allocations: 87.67 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.749e-05/0.2738, allocations: 31.91 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.603e-05/0.2739, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.461e-05/0.2739, allocations: 19.92 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.956e-05/0.274, allocations: 19.86 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.274, allocations: 4 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.2742, allocations: 59.81 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.701e-05/0.2742, allocations: 7.969 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.123e-05/0.2743, allocations: 4 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.2744, allocations: 44.19 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2744, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.32e-07/0.2744, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.496e-06/0.2744, allocations: 0 / 1.057 GB, free: 3.82 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.0003009/0.2747, allocations: 337 kB / 1.058 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.2747, allocations: 16.62 kB / 1.058 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.193e-05/0.2748, allocations: 34.75 kB / 1.058 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.2748, allocations: 4.938 kB / 1.058 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2749, allocations: 176.2 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/0.275, allocations: 26.27 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-06/0.275, allocations: 4.125 kB / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.2751, allocations: 41.69 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.2751, allocations: 0 / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.2751, allocations: 0 / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.2751, allocations: 4 kB / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.889e-05/0.2752, allocations: 15.98 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003527/0.2755, allocations: 338 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 2.885e-05/0.2756, allocations: 18.58 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.2756, allocations: 4.859 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.152e-05/0.2757, allocations: 85.16 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.2757, allocations: 42.56 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.2757, allocations: 0 / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001215/0.2758, allocations: 33.64 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.2759, allocations: 55.34 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/0.276, allocations: 105.8 kB / 1.059 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.276, allocations: 25.7 kB / 1.059 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.276, allocations: 87.98 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.338e-06/0.276, allocations: 128 / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.2761, allocations: 29.61 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2762, allocations: 318.8 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.2e-05/0.2762, allocations: 0 / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.297e-05/0.2763, allocations: 17.72 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.336e-05/0.2763, allocations: 25.64 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2763, allocations: 4 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.591e-05/0.2764, allocations: 45.69 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2764, allocations: 9.25 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2764, allocations: 0 / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.2764, allocations: 3.938 kB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.587e-05/0.2765, allocations: 4 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2765, allocations: 3.938 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.659e-05/0.2765, allocations: 4 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.2765, allocations: 0 / 1.059 GB, free: 1.656 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 6.37e-05/0.2766, allocations: 121.8 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.2766, allocations: 0 / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.941e-05/0.2767, allocations: 117 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.228e-05/0.2767, allocations: 184.2 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-05/0.2768, allocations: 180.3 kB / 1.06 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.142e-05/0.2769, allocations: 184.2 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.277, allocations: 409.4 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-05/0.2771, allocations: 101 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.019e-05/0.2771, allocations: 112.9 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.189e-05/0.2772, allocations: 176.3 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/0.2772, allocations: 176.3 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.69e-05/0.2773, allocations: 188.2 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-05/0.2774, allocations: 188.2 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.2775, allocations: 311.6 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.2775, allocations: 182 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.42e-05/0.2776, allocations: 184.2 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.2777, allocations: 105 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.2778, allocations: 188.1 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.2779, allocations: 109 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.712e-05/0.2779, allocations: 83.27 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2779, allocations: 0 / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002155/0.2781, allocations: 15.94 kB / 1.062 GB, free: 14.19 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.0004025/0.2785, allocations: 0.8321 MB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.765e-05/0.2786, allocations: 15.98 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2786, allocations: 128 / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.2786, allocations: 4 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.2789, allocations: 459.6 kB / 1.064 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008334/0.2798, allocations: 1.324 MB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.28, allocations: 0.6729 MB / 1.065 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.468e-05/0.28, allocations: 7.938 kB / 1.065 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.741e-05/0.2801, allocations: 11.44 kB / 1.065 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2801, allocations: 3.938 kB / 1.065 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5322/0.8123, allocations: 1.489 MB / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.21, allocations: 11.36 kB / 1.067 GB, free: 9.32 MB / 0.8262 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=50 --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