Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_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.001303/0.001303, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00135/0.00135, allocations: 195.5 kB / 16.25 MB, free: 6.637 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.339/1.339, allocations: 222.9 MB / 239.9 MB, free: 4.492 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.118/2.118, allocations: 390.2 MB / 0.6644 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.89 kB / 0.8121 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5303/0.5314, allocations: 140.4 MB / 0.9492 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003591/0.5351, allocations: 4.063 MB / 0.9532 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001268/0.5352, allocations: 150.3 kB / 0.9533 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.667e-05/0.5352, allocations: 0 / 0.9533 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.071e-05/0.5353, allocations: 0 / 0.9533 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.606e-05/0.5354, allocations: 15.62 kB / 0.9533 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.5356, allocations: 82.36 kB / 0.9534 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.944e-05/0.5357, allocations: 30.12 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.711e-05/0.5357, allocations: 1.031 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.949e-05/0.5358, allocations: 22.23 kB / 0.9535 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.5358, allocations: 18.69 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.348e-06/0.5358, allocations: 5.281 kB / 0.9535 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.536, allocations: 52.89 kB / 0.9535 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.536, allocations: 6.109 kB / 0.9535 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.536, allocations: 13.58 kB / 0.9536 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.5361, allocations: 53.94 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.5362, allocations: 1.031 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.734e-06/0.5362, allocations: 0 / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.5362, allocations: 3.938 kB / 0.9536 GB, free: 5.605 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.0002349/0.5364, allocations: 337.1 kB / 0.9539 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.5364, allocations: 8.562 kB / 0.9539 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.985e-05/0.5365, allocations: 31.69 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.5365, allocations: 2.344 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.319e-05/0.5366, allocations: 166 kB / 0.9541 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.5366, allocations: 35.23 kB / 0.9542 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.5366, allocations: 9.578 kB / 0.9542 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.376e-05/0.5367, allocations: 39.34 kB / 0.9542 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.5367, allocations: 0 / 0.9542 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.5367, allocations: 0 / 0.9542 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.5368, allocations: 1.469 kB / 0.9542 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.596e-05/0.5368, allocations: 17.7 kB / 0.9542 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000283/0.5371, allocations: 341 kB / 0.9546 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.704e-05/0.5371, allocations: 19.86 kB / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.066e-05/0.5371, allocations: 6.328 kB / 0.9546 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.631e-05/0.5372, allocations: 86.75 kB / 0.9547 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.5372, allocations: 35.69 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.5372, allocations: 0 / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001062/0.5373, allocations: 39.28 kB / 0.9547 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.642e-05/0.5374, allocations: 52.69 kB / 0.9548 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.661e-05/0.5374, allocations: 107.8 kB / 0.9549 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.924e-06/0.5374, allocations: 25.7 kB / 0.9549 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.123e-05/0.5374, allocations: 85.3 kB / 0.955 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.987e-06/0.5375, allocations: 1.25 kB / 0.955 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.5375, allocations: 17.25 kB / 0.955 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.245e-05/0.5375, allocations: 316.2 kB / 0.9553 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.308e-05/0.5375, allocations: 11.05 kB / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.668e-05/0.5376, allocations: 17.03 kB / 0.9553 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.34e-05/0.5376, allocations: 15.38 kB / 0.9554 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5376, allocations: 1.156 kB / 0.9554 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.84e-05/0.5377, allocations: 49.88 kB / 0.9554 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.5377, allocations: 7.438 kB / 0.9554 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.5377, allocations: 5.5 kB / 0.9554 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.5377, allocations: 3.938 kB / 0.9554 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.581e-05/0.5377, allocations: 12.98 kB / 0.9554 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.5377, allocations: 5.328 kB / 0.9554 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.5378, allocations: 9.188 kB / 0.9555 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.5378, allocations: 1.25 kB / 0.9555 GB, free: 3.574 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.899e-05/0.5378, allocations: 120 kB / 0.9556 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.381e-05/0.5378, allocations: 1.062 kB / 0.9556 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/0.5379, allocations: 123.7 kB / 0.9557 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.5379, allocations: 177.5 kB / 0.9559 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.04e-05/0.538, allocations: 181.6 kB / 0.956 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.538, allocations: 181.8 kB / 0.9562 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.5381, allocations: 408 kB / 0.9566 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.5381, allocations: 109 kB / 0.9567 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.199e-05/0.5381, allocations: 106.4 kB / 0.9568 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.925e-05/0.5382, allocations: 185.7 kB / 0.957 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.5382, allocations: 177.7 kB / 0.9571 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.806e-05/0.5382, allocations: 180.2 kB / 0.9573 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.895e-05/0.5382, allocations: 177.6 kB / 0.9575 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.743e-05/0.5383, allocations: 316 kB / 0.9578 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.306e-05/0.5383, allocations: 179.5 kB / 0.958 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.5384, allocations: 181.6 kB / 0.9581 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.5385, allocations: 107.8 kB / 0.9582 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.325e-05/0.5385, allocations: 189.7 kB / 0.9584 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.5385, allocations: 101 kB / 0.9585 GB, free: 252 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.559e-05/0.5386, allocations: 84.42 kB / 0.9586 GB, free: 172 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5386, allocations: 0 / 0.9586 GB, free: 172 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002213/0.5388, allocations: 16.19 kB / 0.9586 GB, free: 168 kB / 0.7169 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.0004217/0.5392, allocations: 0.8373 MB / 0.9594 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 5.547e-05/0.5393, allocations: 11.33 kB / 0.9594 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5393, allocations: 0 / 0.9594 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.5393, allocations: 0 / 0.9594 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.5396, allocations: 464 kB / 0.9599 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000872/0.5405, allocations: 1.321 MB / 0.9612 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.5407, allocations: 0.6761 MB / 0.9618 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.92e-05/0.5408, allocations: 8.188 kB / 0.9618 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.788e-05/0.5408, allocations: 12.94 kB / 0.9618 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.5408, allocations: 0 / 0.9618 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9956/1.536, allocations: 1.4 MB / 0.9632 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/1.537, allocations: 209.4 kB / 0.9634 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/3.356, allocations: 0 / 0.9634 GB, free: 11.84 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches