Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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: translateModel(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, 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.002017/0.002017, allocations: 193.6 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.342/2.342, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 71.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7287/0.7302, allocations: 140.4 MB / 0.9489 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.004872/0.7351, allocations: 3.789 MB / 0.9526 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001673/0.7353, allocations: 167.1 kB / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.567e-05/0.7353, allocations: 0 / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.034e-05/0.7354, allocations: 5.109 kB / 0.9528 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.7355, allocations: 10.08 kB / 0.9528 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.7358, allocations: 79.88 kB / 0.9528 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.058e-05/0.7359, allocations: 57.45 kB / 0.9529 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.736, allocations: 1.406 kB / 0.9529 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.234e-05/0.736, allocations: 25.59 kB / 0.9529 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.797e-05/0.7361, allocations: 10.81 kB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.7361, allocations: 0 / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005405/0.7367, allocations: 194.6 kB / 0.9531 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.779e-05/0.7367, allocations: 10.55 kB / 0.9531 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.638e-05/0.7367, allocations: 4.625 kB / 0.9531 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.7369, allocations: 46.86 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.7369, allocations: 4 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.7369, allocations: 0 / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.7369, allocations: 0 / 0.9532 GB, free: 5.746 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.0002934/0.7372, allocations: 335.9 kB / 0.9535 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.7372, allocations: 10.38 kB / 0.9535 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.7373, allocations: 2.281 kB / 0.9535 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.387e-05/0.7374, allocations: 165.9 kB / 0.9537 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.7374, allocations: 27.55 kB / 0.9537 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.7375, allocations: 4.375 kB / 0.9537 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.7376, allocations: 55.33 kB / 0.9538 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.7376, allocations: 3.938 kB / 0.9538 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.7376, allocations: 1.062 kB / 0.9538 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.7376, allocations: 1.625 kB / 0.9538 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.046e-05/0.7377, allocations: 13.39 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003342/0.738, allocations: 332.9 kB / 0.9541 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.233e-05/0.7381, allocations: 23.78 kB / 0.9541 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.47e-05/0.7381, allocations: 14.2 kB / 0.9541 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.458e-05/0.7381, allocations: 85.84 kB / 0.9542 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.7382, allocations: 32.5 kB / 0.9542 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.903e-06/0.7382, allocations: 0 / 0.9542 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.7383, allocations: 35.89 kB / 0.9543 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.7383, allocations: 51.41 kB / 0.9543 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.591e-05/0.7384, allocations: 108.3 kB / 0.9544 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.7384, allocations: 25.7 kB / 0.9545 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.784e-05/0.7385, allocations: 86.64 kB / 0.9545 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.672e-06/0.7385, allocations: 11.92 kB / 0.9545 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.7385, allocations: 17.28 kB / 0.9546 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.642e-05/0.7386, allocations: 316.1 kB / 0.9549 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.677e-05/0.7386, allocations: 10.41 kB / 0.9549 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.179e-05/0.7386, allocations: 25.61 kB / 0.9549 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.232e-05/0.7386, allocations: 20.16 kB / 0.9549 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.7386, allocations: 0 / 0.9549 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.707e-05/0.7387, allocations: 46.41 kB / 0.955 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.7387, allocations: 6.25 kB / 0.955 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.7387, allocations: 0 / 0.955 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.7388, allocations: 1.25 kB / 0.955 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.282e-05/0.7388, allocations: 8.031 kB / 0.955 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.7388, allocations: 1.25 kB / 0.955 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.932e-05/0.7388, allocations: 5.281 kB / 0.955 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.7389, allocations: 5.656 kB / 0.955 GB, free: 3.75 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.643e-05/0.7389, allocations: 115.8 kB / 0.9551 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.7389, allocations: 1.344 kB / 0.9551 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.426e-05/0.739, allocations: 120.1 kB / 0.9552 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.187e-05/0.7391, allocations: 184.3 kB / 0.9554 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.471e-05/0.7391, allocations: 185.4 kB / 0.9556 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.478e-05/0.7392, allocations: 177.8 kB / 0.9557 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.7393, allocations: 408 kB / 0.9561 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.7393, allocations: 106.2 kB / 0.9562 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-05/0.7393, allocations: 105 kB / 0.9563 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.117e-05/0.7394, allocations: 181.5 kB / 0.9565 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.7394, allocations: 177.7 kB / 0.9567 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.137e-05/0.7394, allocations: 185.1 kB / 0.9568 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.34e-05/0.7394, allocations: 185.5 kB / 0.957 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.594e-05/0.7395, allocations: 311.3 kB / 0.9573 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.01e-05/0.7395, allocations: 183.5 kB / 0.9575 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.875e-05/0.7396, allocations: 185.7 kB / 0.9577 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.7397, allocations: 111.8 kB / 0.9578 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.045e-05/0.7398, allocations: 181.7 kB / 0.958 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.7398, allocations: 110.5 kB / 0.9581 GB, free: 428 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.776e-05/0.7398, allocations: 83.53 kB / 0.9581 GB, free: 348 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7398, allocations: 0 / 0.9581 GB, free: 348 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002409/0.7401, allocations: 15.91 kB / 0.9582 GB, free: 344 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.0002275/0.7403, allocations: 196.9 kB / 0.9583 GB, free: 164 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.887e-05/0.7404, allocations: 7 kB / 0.9583 GB, free: 164 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7404, allocations: 4.062 kB / 0.9584 GB, free: 160 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.955e-06/0.7404, allocations: 4.969 kB / 0.9584 GB, free: 156 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.7408, allocations: 0.5312 MB / 0.9589 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002442/0.741, allocations: 182.3 kB / 0.9591 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.7413, allocations: 0.6717 MB / 0.9597 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.096e-05/0.7413, allocations: 5.375 kB / 0.9597 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.7414, allocations: 12.36 kB / 0.9597 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.7414, allocations: 0 / 0.9597 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of Templates: time 0.002777/0.7441, allocations: 0.6217 MB / 0.9603 GB, free: 14.4 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches