Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9452/0.9452, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.041/2.041, allocations: 429.5 MB / 0.6732 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.8781 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.886e-05, allocations: 5.125 kB / 0.8781 GB, free: 6.344 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003893/0.003912, allocations: 4.165 MB / 0.8822 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0001342/0.004046, allocations: 161.2 kB / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.06e-05/0.004066, allocations: 0 / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.997e-05/0.004166, allocations: 0 / 0.8824 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.217e-05/0.004249, allocations: 24.47 kB / 0.8824 GB, free: 2 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.004558, allocations: 88.95 kB / 0.8825 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.477e-05/0.004632, allocations: 41.31 kB / 0.8825 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.154e-05/0.004664, allocations: 0 / 0.8825 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.836e-05/0.004712, allocations: 15.98 kB / 0.8825 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.359e-05/0.004776, allocations: 16.59 kB / 0.8825 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.00479, allocations: 4 kB / 0.8825 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.004944, allocations: 56.84 kB / 0.8826 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.366e-05/0.004998, allocations: 11.92 kB / 0.8826 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.005018, allocations: 11.56 kB / 0.8826 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.005138, allocations: 59.86 kB / 0.8827 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.00514, allocations: 0 / 0.8827 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.21e-07/0.00514, allocations: 0 / 0.8827 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.005144, allocations: 0 / 0.8827 GB, free: 1.707 MB / 0.8386 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.0003315/0.005475, allocations: 364.6 kB / 0.883 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.005508, allocations: 12.03 kB / 0.883 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/0.00555, allocations: 0.9375 kB / 0.883 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.337e-05/0.005623, allocations: 112.6 kB / 0.8832 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/0.00568, allocations: 56.66 kB / 0.8832 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.005691, allocations: 4.375 kB / 0.8832 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.005806, allocations: 88.58 kB / 0.8833 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.005812, allocations: 192 / 0.8833 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.005822, allocations: 7.938 kB / 0.8833 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.005844, allocations: 0 / 0.8833 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.305e-05/0.005867, allocations: 4 kB / 0.8833 GB, free: 0.9844 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003457/0.006212, allocations: 259.8 kB / 0.8836 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.647e-05/0.006249, allocations: 30.98 kB / 0.8836 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.653e-05/0.006265, allocations: 15.69 kB / 0.8836 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.006306, allocations: 8 kB / 0.8836 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.006327, allocations: 37.39 kB / 0.8836 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.006328, allocations: 4 kB / 0.8836 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001135/0.006441, allocations: 33.69 kB / 0.8837 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.006468, allocations: 55.34 kB / 0.8837 GB, free: 480 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.006541, allocations: 161.9 kB / 0.8839 GB, free: 300 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.006552, allocations: 25.7 kB / 0.8839 GB, free: 268 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.0066, allocations: 138.8 kB / 0.884 GB, free: 124 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.048e-06/0.006604, allocations: 0 / 0.884 GB, free: 124 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.232e-05/0.006626, allocations: 23.38 kB / 0.8841 GB, free: 92 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.006744, allocations: 496.1 kB / 0.8845 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.006753, allocations: 128 / 0.8845 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.132e-05/0.006774, allocations: 31.55 kB / 0.8846 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.752e-05/0.006802, allocations: 23.38 kB / 0.8846 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.006804, allocations: 0 / 0.8846 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.487e-05/0.006859, allocations: 61.52 kB / 0.8846 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.006869, allocations: 4 kB / 0.8847 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.006873, allocations: 96 / 0.8847 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.006886, allocations: 7.984 kB / 0.8847 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.463e-05/0.006921, allocations: 4 kB / 0.8847 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.006925, allocations: 4.062 kB / 0.8847 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.141e-05/0.006937, allocations: 0 / 0.8847 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.006945, allocations: 4 kB / 0.8847 GB, free: 15.43 MB / 0.8542 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 5.83e-05/0.007003, allocations: 160.5 kB / 0.8848 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.007021, allocations: 11.94 kB / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.007123, allocations: 167.7 kB / 0.885 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/0.007179, allocations: 264.1 kB / 0.8852 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.723e-05/0.007236, allocations: 272 kB / 0.8855 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.068e-05/0.007297, allocations: 276 kB / 0.8858 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.007449, allocations: 499.8 kB / 0.8862 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/0.007482, allocations: 148.9 kB / 0.8864 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.462e-05/0.007517, allocations: 144.9 kB / 0.8865 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.906e-05/0.007576, allocations: 276 kB / 0.8868 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-05/0.007635, allocations: 268.1 kB / 0.887 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-05/0.007694, allocations: 268 kB / 0.8873 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.377e-05/0.007758, allocations: 268.1 kB / 0.8876 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.007907, allocations: 451.9 kB / 0.888 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.00795, allocations: 148.8 kB / 0.8881 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.255e-05/0.008022, allocations: 276 kB / 0.8884 GB, free: 11.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.373e-05/0.008116, allocations: 152.9 kB / 0.8885 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.008191, allocations: 272 kB / 0.8888 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.008223, allocations: 144.9 kB / 0.8889 GB, free: 10.87 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.914e-05/0.008262, allocations: 131.2 kB / 0.8891 GB, free: 10.74 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.008262, allocations: 0 / 0.8891 GB, free: 10.74 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001563/0.008418, allocations: 19.94 kB / 0.8891 GB, free: 10.72 MB / 0.8542 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.0001453/0.008563, allocations: 230.4 kB / 0.8893 GB, free: 10.48 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.8e-05/0.008641, allocations: 19.62 kB / 0.8893 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.008644, allocations: 0 / 0.8893 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.154e-06/0.008646, allocations: 4.125 kB / 0.8893 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.008958, allocations: 0.7142 MB / 0.89 GB, free: 9.738 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003803/0.009339, allocations: 241.5 kB / 0.8902 GB, free: 9.473 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.889e-05/0.009367, allocations: 51.36 kB / 0.8903 GB, free: 9.402 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.719e-05/0.009395, allocations: 7.984 kB / 0.8903 GB, free: 9.395 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.009412, allocations: 12.5 kB / 0.8903 GB, free: 9.383 MB / 0.8542 GB Notification: Performance of SimCode: time 9.92e-07/0.009413, allocations: 0 / 0.8903 GB, free: 9.383 MB / 0.8542 GB Notification: Performance of Templates: time 0.002219/0.01163, allocations: 0.7199 MB / 0.891 GB, free: 8.672 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.209702142048627]