Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_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.001207/0.001207, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001193/0.001193, allocations: 200.9 kB / 16.26 MB, free: 6.625 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.222/1.222, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.167/2.167, allocations: 390.2 MB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4901/0.4914, allocations: 140.4 MB / 0.9492 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003772/0.4952, allocations: 3.341 MB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 7.947e-05/0.4953, allocations: 48.25 kB / 0.9525 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.879e-05/0.4953, allocations: 0 / 0.9525 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.063e-05/0.4954, allocations: 3.938 kB / 0.9525 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.008e-05/0.4955, allocations: 14.66 kB / 0.9526 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.4959, allocations: 179 kB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.301e-05/0.496, allocations: 37.84 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.01e-05/0.496, allocations: 1.25 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.328e-05/0.4961, allocations: 16.81 kB / 0.9528 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.224e-05/0.4961, allocations: 15.59 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.4961, allocations: 1.75 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002556/0.4964, allocations: 175.3 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.436e-05/0.4964, allocations: 14.95 kB / 0.953 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.4965, allocations: 4.906 kB / 0.953 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.4967, allocations: 140.5 kB / 0.9531 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4967, allocations: 0 / 0.9531 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.243e-06/0.4967, allocations: 0 / 0.9531 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.4967, allocations: 0 / 0.9531 GB, free: 5.973 MB / 0.7169 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.0002608/0.497, allocations: 347.7 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.497, allocations: 9.562 kB / 0.9535 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.645e-05/0.497, allocations: 31.72 kB / 0.9535 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.955e-05/0.4971, allocations: 2.312 kB / 0.9535 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.735e-05/0.4971, allocations: 165.7 kB / 0.9536 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.4972, allocations: 27.64 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.4972, allocations: 16.95 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.4973, allocations: 43.41 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.4973, allocations: 0 / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.4973, allocations: 1.344 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.4973, allocations: 3.984 kB / 0.9537 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.84e-05/0.4974, allocations: 13.31 kB / 0.9537 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004053/0.4978, allocations: 0.5816 MB / 0.9543 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.694e-05/0.4978, allocations: 23.8 kB / 0.9543 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.18e-05/0.4979, allocations: 14.09 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001468/0.498, allocations: 346 kB / 0.9547 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.498, allocations: 32.31 kB / 0.9547 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.498, allocations: 0 / 0.9547 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.000114/0.4982, allocations: 43.27 kB / 0.9548 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.904e-05/0.4982, allocations: 53.22 kB / 0.9548 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.723e-05/0.4982, allocations: 107.1 kB / 0.9549 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.465e-06/0.4983, allocations: 25.7 kB / 0.9549 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.337e-05/0.4983, allocations: 89.48 kB / 0.955 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.178e-06/0.4983, allocations: 1.25 kB / 0.955 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.4983, allocations: 17.48 kB / 0.955 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.306e-05/0.4984, allocations: 323.9 kB / 0.9553 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.4984, allocations: 2.25 kB / 0.9553 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.816e-05/0.4984, allocations: 17.23 kB / 0.9554 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.671e-05/0.4984, allocations: 20.47 kB / 0.9554 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.4984, allocations: 0 / 0.9554 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.24e-05/0.4985, allocations: 51.66 kB / 0.9554 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.4985, allocations: 8.5 kB / 0.9554 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.4985, allocations: 0.6562 kB / 0.9554 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.4985, allocations: 1.406 kB / 0.9554 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.831e-05/0.4986, allocations: 4.844 kB / 0.9554 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.4986, allocations: 0 / 0.9554 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.4986, allocations: 4.906 kB / 0.9554 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.4986, allocations: 6.625 kB / 0.9555 GB, free: 3.34 MB / 0.7169 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 3.833e-05/0.4987, allocations: 115 kB / 0.9556 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.4987, allocations: 5.281 kB / 0.9556 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.982e-05/0.4988, allocations: 120.7 kB / 0.9557 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.4988, allocations: 177.6 kB / 0.9559 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/0.4988, allocations: 185.5 kB / 0.956 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4988, allocations: 176.3 kB / 0.9562 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.499, allocations: 420.6 kB / 0.9566 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.499, allocations: 102.4 kB / 0.9567 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.059e-05/0.499, allocations: 104.9 kB / 0.9568 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.928e-05/0.499, allocations: 181 kB / 0.957 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.499, allocations: 185.2 kB / 0.9571 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.821e-05/0.4991, allocations: 185.5 kB / 0.9573 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.105e-05/0.4991, allocations: 181.5 kB / 0.9575 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.652e-05/0.4991, allocations: 308.8 kB / 0.9578 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.237e-05/0.4992, allocations: 183.5 kB / 0.958 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.4992, allocations: 181.5 kB / 0.9581 GB, free: 424 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.4993, allocations: 103.5 kB / 0.9582 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.261e-05/0.4994, allocations: 189.4 kB / 0.9584 GB, free: 120 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.4994, allocations: 101.3 kB / 0.9585 GB, free: 12 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.525e-05/0.4994, allocations: 84.38 kB / 0.9586 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4994, allocations: 1.281 kB / 0.9586 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002733/0.4997, allocations: 43.02 kB / 0.9586 GB, free: 15.91 MB / 0.7325 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.0004278/0.5002, allocations: 0.8581 MB / 0.9595 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.2e-05/0.5002, allocations: 15.17 kB / 0.9595 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5002, allocations: 0 / 0.9595 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.5002, allocations: 0 / 0.9595 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.5006, allocations: 463.5 kB / 0.9599 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000845/0.5015, allocations: 1.337 MB / 0.9612 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.5017, allocations: 0.6761 MB / 0.9619 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.122e-05/0.5017, allocations: 7.234 kB / 0.9619 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.5017, allocations: 9 kB / 0.9619 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.5017, allocations: 3.938 kB / 0.9619 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6435/1.145, allocations: 2.056 MB / 0.9639 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/1.145, allocations: 263.2 kB / 0.9642 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/4.202, allocations: 0 / 0.9642 GB, free: 11.28 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches