Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.001747/0.001747, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.002984/0.002984, allocations: 198.9 kB / 16.26 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.352/2.352, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.954/2.954, allocations: 461.9 MB / 0.7344 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 65.69 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2279, allocations: 157.4 MB / 1.052 GB, free: 8.617 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004289/0.2322, allocations: 3.346 MB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 8.82e-05/0.2323, allocations: 47.86 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.019e-05/0.2323, allocations: 0 / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.934e-05/0.2324, allocations: 0 / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.744e-05/0.2325, allocations: 19.91 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.233, allocations: 171.4 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.161e-05/0.2331, allocations: 35.84 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.327e-05/0.2331, allocations: 4 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.472e-05/0.2332, allocations: 19.91 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.518e-05/0.2332, allocations: 15.92 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.2332, allocations: 0 / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.2335, allocations: 171.6 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.2336, allocations: 19.92 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.2336, allocations: 11.92 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.2338, allocations: 132 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2339, allocations: 0 / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2339, allocations: 0 / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.2339, allocations: 0 / 1.056 GB, free: 4.609 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.0003215/0.2342, allocations: 343.5 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2342, allocations: 8.031 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.2343, allocations: 38.69 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.2343, allocations: 4.938 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.069e-05/0.2344, allocations: 168.4 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.2345, allocations: 26.27 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.2345, allocations: 8.125 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.2346, allocations: 45.67 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.2346, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.2346, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.2346, allocations: 4 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.03e-05/0.2347, allocations: 11.98 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.2352, allocations: 0.591 MB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.118e-05/0.2353, allocations: 18.58 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.303e-05/0.2353, allocations: 4.859 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001958/0.2355, allocations: 340.5 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.2355, allocations: 38.55 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.2355, allocations: 4 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001203/0.2356, allocations: 37.62 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.2357, allocations: 51.41 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.475e-05/0.2358, allocations: 105.8 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.2358, allocations: 25.7 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.964e-05/0.2358, allocations: 84.05 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.16e-06/0.2358, allocations: 4 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.2359, allocations: 17.72 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.236, allocations: 322.9 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.236, allocations: 0 / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.101e-05/0.236, allocations: 17.72 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.368e-05/0.236, allocations: 25.64 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.236, allocations: 3.938 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.997e-05/0.2361, allocations: 53.58 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2361, allocations: 8 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.2361, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.318e-06/0.2362, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.968e-05/0.2362, allocations: 11.92 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.2362, allocations: 3.984 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.02e-05/0.2362, allocations: 7.938 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.2363, allocations: 0 / 1.059 GB, free: 1.816 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.02e-05/0.2363, allocations: 117.8 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.2363, allocations: 0 / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.276e-05/0.2364, allocations: 125 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-05/0.2365, allocations: 184.2 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.74e-05/0.2366, allocations: 176.3 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.994e-05/0.2366, allocations: 184.2 kB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.2368, allocations: 409.2 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.687e-05/0.2368, allocations: 105 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.231e-05/0.2369, allocations: 112.9 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.855e-05/0.2369, allocations: 176.3 kB / 1.06 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.237, allocations: 180.4 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.973e-05/0.237, allocations: 184.3 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.677e-05/0.2371, allocations: 180.3 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.2372, allocations: 311.7 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.815e-05/0.2373, allocations: 185.9 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.2373, allocations: 180.3 kB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2375, allocations: 113 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.2376, allocations: 184.2 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.2376, allocations: 105 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.971e-05/0.2376, allocations: 87.27 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2376, allocations: 0 / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000257/0.2379, allocations: 35.94 kB / 1.062 GB, free: 14.34 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.0004391/0.2383, allocations: 0.8695 MB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.878e-05/0.2384, allocations: 12 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2384, allocations: 0 / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.966e-06/0.2384, allocations: 3.938 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.2388, allocations: 457 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008515/0.2397, allocations: 1.332 MB / 1.064 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.2399, allocations: 0.6728 MB / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.347e-05/0.2399, allocations: 10.66 kB / 1.065 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.218e-05/0.2399, allocations: 15.44 kB / 1.065 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.2399, allocations: 0 / 1.065 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.787/2.027, allocations: 2.058 MB / 1.067 GB, free: 9 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0007298/2.027, allocations: 269.2 kB / 1.067 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.72/4.748, allocations: 7.938 kB / 1.067 GB, free: 8.633 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches