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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 103 kB / 16.36 MB, free: 5.879 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.00149/0.00149, allocations: 196.1 kB / 17.3 MB, free: 5.52 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.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.464/2.464, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 59.97 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.255, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004888/0.26, allocations: 4.031 MB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001749/0.2602, allocations: 159.4 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.038e-05/0.2602, allocations: 0 / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.183e-05/0.2603, allocations: 3.984 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.413e-05/0.2604, allocations: 11.94 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.2607, allocations: 79.69 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.952e-05/0.2608, allocations: 39.89 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.632e-05/0.2608, allocations: 0 / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.645e-05/0.2608, allocations: 19.92 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.217e-05/0.2609, allocations: 15.92 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.2609, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.2611, allocations: 59.8 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.826e-05/0.2611, allocations: 4 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.2612, allocations: 11.98 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.2613, allocations: 39.91 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2613, allocations: 4 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2613, allocations: 0 / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.2613, allocations: 0 / 1.031 GB, free: 13.57 MB / 0.8106 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.0003248/0.2617, allocations: 340.7 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.2617, allocations: 8.031 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.2617, allocations: 4.922 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.48e-05/0.2618, allocations: 168.3 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.2619, allocations: 30.2 kB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-06/0.2619, allocations: 4.375 kB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.262, allocations: 49.62 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.262, allocations: 0 / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.262, allocations: 3.984 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.2621, allocations: 0 / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.823e-05/0.2621, allocations: 8 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.2625, allocations: 334 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.579e-05/0.2625, allocations: 30.52 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/0.2626, allocations: 8.844 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.237e-05/0.2626, allocations: 81.17 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.2627, allocations: 34.56 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.2627, allocations: 3.938 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001243/0.2628, allocations: 33.69 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2629, allocations: 51.41 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.955e-05/0.2629, allocations: 109.9 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.263, allocations: 25.7 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.263, allocations: 95.97 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.218e-06/0.263, allocations: 0 / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.263, allocations: 21.56 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.2631, allocations: 322.8 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.269e-05/0.2632, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.387e-05/0.2632, allocations: 21.7 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.167e-05/0.2632, allocations: 21.72 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2632, allocations: 0 / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.066e-05/0.2633, allocations: 49.62 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2633, allocations: 8 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2633, allocations: 0 / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.2633, allocations: 0 / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.838e-05/0.2634, allocations: 8.062 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2634, allocations: 0 / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.2634, allocations: 4 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.2634, allocations: 3.984 kB / 1.033 GB, free: 11.45 MB / 0.8106 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 6.874e-05/0.2635, allocations: 121.7 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.2635, allocations: 0 / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.224e-05/0.2636, allocations: 121 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.007e-05/0.2637, allocations: 184.2 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.062e-05/0.2638, allocations: 180.2 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.902e-05/0.2638, allocations: 176.3 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.264, allocations: 421.1 kB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.278e-05/0.2641, allocations: 101 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.974e-05/0.2641, allocations: 105 kB / 1.034 GB, free: 9.961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.807e-05/0.2641, allocations: 184.5 kB / 1.034 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/0.2642, allocations: 180.2 kB / 1.035 GB, free: 9.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.344e-05/0.2643, allocations: 184.2 kB / 1.035 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.804e-05/0.2643, allocations: 180.3 kB / 1.035 GB, free: 9.219 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000134/0.2645, allocations: 315.6 kB / 1.035 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.2645, allocations: 186.1 kB / 1.035 GB, free: 8.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/0.2646, allocations: 184.1 kB / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2648, allocations: 109 kB / 1.036 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.2648, allocations: 184.2 kB / 1.036 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.2649, allocations: 109 kB / 1.036 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.066e-05/0.2649, allocations: 83.28 kB / 1.036 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2649, allocations: 0 / 1.036 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002394/0.2652, allocations: 16 kB / 1.036 GB, free: 7.98 MB / 0.8106 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.0002064/0.2654, allocations: 198.4 kB / 1.036 GB, free: 7.777 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.581e-05/0.2654, allocations: 15.92 kB / 1.036 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2655, allocations: 4.125 kB / 1.036 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.639e-06/0.2655, allocations: 4 kB / 1.036 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.2658, allocations: 455.7 kB / 1.037 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002189/0.266, allocations: 185.8 kB / 1.037 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.2663, allocations: 0.6768 MB / 1.038 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.538e-05/0.2663, allocations: 7.984 kB / 1.038 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.446e-05/0.2663, allocations: 7.438 kB / 1.038 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2663, allocations: 0 / 1.038 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of Templates: time 0.002482/0.2688, allocations: 0.6337 MB / 1.038 GB, free: 5.75 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches