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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001563/0.001563, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001813/0.001813, allocations: 195 kB / 16.14 MB, free: 6.648 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.23/1.23, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.082/2.082, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.505/0.5065, allocations: 140.4 MB / 0.949 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003532/0.5101, allocations: 3.341 MB / 0.9523 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 6.996e-05/0.5101, allocations: 59.47 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.361e-05/0.5102, allocations: 0 / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.582e-05/0.5102, allocations: 3.938 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.728e-05/0.5103, allocations: 15.09 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.5107, allocations: 168.6 kB / 0.9525 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.113e-05/0.5108, allocations: 60.38 kB / 0.9526 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.83e-05/0.5108, allocations: 2.25 kB / 0.9526 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.163e-05/0.5108, allocations: 20.7 kB / 0.9526 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.5109, allocations: 6.594 kB / 0.9526 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.5109, allocations: 1.094 kB / 0.9526 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002731/0.5112, allocations: 175 kB / 0.9528 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.565e-05/0.5112, allocations: 11.86 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.385e-05/0.5113, allocations: 8.312 kB / 0.9528 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.5115, allocations: 140.7 kB / 0.9529 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.5115, allocations: 0 / 0.9529 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5115, allocations: 0 / 0.9529 GB, free: 6 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.5115, allocations: 0 / 0.9529 GB, free: 6 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.0002806/0.5118, allocations: 360.5 kB / 0.9533 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.5118, allocations: 9.406 kB / 0.9533 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.421e-05/0.5119, allocations: 30.75 kB / 0.9533 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.5119, allocations: 2.25 kB / 0.9533 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.121e-05/0.512, allocations: 162 kB / 0.9535 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.512, allocations: 31.39 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-06/0.512, allocations: 5.625 kB / 0.9535 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.5121, allocations: 42.75 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.5121, allocations: 4 kB / 0.9536 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.5122, allocations: 5.547 kB / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.5122, allocations: 0 / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.991e-05/0.5122, allocations: 13.38 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000431/0.5127, allocations: 0.5769 MB / 0.9541 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.802e-05/0.5127, allocations: 29.38 kB / 0.9542 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.228e-05/0.5127, allocations: 9.984 kB / 0.9542 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.5128, allocations: 349.6 kB / 0.9545 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.5129, allocations: 31.81 kB / 0.9545 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.5129, allocations: 0 / 0.9545 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001179/0.513, allocations: 40.67 kB / 0.9546 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.969e-05/0.513, allocations: 55.39 kB / 0.9546 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.398e-05/0.5131, allocations: 103 kB / 0.9547 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.674e-06/0.5131, allocations: 27.17 kB / 0.9548 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.215e-05/0.5131, allocations: 89.36 kB / 0.9549 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.469e-06/0.5131, allocations: 3.984 kB / 0.9549 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.5132, allocations: 18.16 kB / 0.9549 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.303e-05/0.5132, allocations: 315.7 kB / 0.9552 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.5132, allocations: 6.375 kB / 0.9552 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.786e-05/0.5132, allocations: 17.52 kB / 0.9552 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.819e-05/0.5133, allocations: 24.81 kB / 0.9552 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.5133, allocations: 0 / 0.9552 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.234e-05/0.5133, allocations: 50.41 kB / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.5134, allocations: 5.531 kB / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.5134, allocations: 0 / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.5134, allocations: 1.281 kB / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.644e-05/0.5134, allocations: 4.188 kB / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.5134, allocations: 1.062 kB / 0.9553 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.5135, allocations: 9.594 kB / 0.9553 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.5135, allocations: 1.406 kB / 0.9553 GB, free: 3.367 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 4.135e-05/0.5135, allocations: 116.3 kB / 0.9554 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.5135, allocations: 5.438 kB / 0.9554 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.952e-05/0.5136, allocations: 121.5 kB / 0.9555 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.5136, allocations: 181.8 kB / 0.9557 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/0.5137, allocations: 189.8 kB / 0.9559 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.5137, allocations: 176.3 kB / 0.956 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.5138, allocations: 412.6 kB / 0.9564 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.5139, allocations: 106.3 kB / 0.9565 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.169e-05/0.5139, allocations: 104.9 kB / 0.9566 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.35e-05/0.5139, allocations: 185.7 kB / 0.9568 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.5139, allocations: 185.6 kB / 0.957 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.015e-05/0.514, allocations: 176.3 kB / 0.9572 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.916e-05/0.514, allocations: 181.7 kB / 0.9573 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.562e-05/0.5141, allocations: 307.7 kB / 0.9576 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.819e-05/0.5141, allocations: 187.5 kB / 0.9578 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.5141, allocations: 181.6 kB / 0.958 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.5143, allocations: 103.6 kB / 0.9581 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.5143, allocations: 181.3 kB / 0.9583 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.5143, allocations: 110 kB / 0.9584 GB, free: 36 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.15e-05/0.5144, allocations: 85.03 kB / 0.9584 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5144, allocations: 4 kB / 0.9584 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000271/0.5147, allocations: 43.17 kB / 0.9585 GB, free: 15.93 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.0004511/0.5151, allocations: 0.8628 MB / 0.9593 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.261e-05/0.5152, allocations: 17.83 kB / 0.9593 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.5152, allocations: 1.188 kB / 0.9593 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.5152, allocations: 0 / 0.9593 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.5156, allocations: 0.5272 MB / 0.9599 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009219/0.5165, allocations: 1.324 MB / 0.9612 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.5168, allocations: 0.6798 MB / 0.9618 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.059e-05/0.5168, allocations: 11.33 kB / 0.9618 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.935e-05/0.5169, allocations: 8.531 kB / 0.9618 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.5169, allocations: 0 / 0.9618 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07055/0.5874, allocations: 2.012 MB / 0.9638 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/0.5877, allocations: 258.3 kB / 0.964 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.369, allocations: 2.688 kB / 0.964 GB, free: 11.23 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