Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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: translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 90.44 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 178.8 kB / 16.92 MB, free: 6.652 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.454/1.454, allocations: 223.3 MB / 241 MB, free: 5.367 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.388/2.388, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003499, allocations: 16 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6782/0.6786, allocations: 142.4 MB / 0.9557 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1638/0.8424, allocations: 144.2 MB / 1.096 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001327/0.8426, allocations: 55.86 kB / 1.097 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.084e-05/0.8427, allocations: 0 / 1.097 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.8428, allocations: 0 / 1.097 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.8429, allocations: 19.91 kB / 1.097 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.8437, allocations: 191.4 kB / 1.097 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.8438, allocations: 63.8 kB / 1.097 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.633e-05/0.8439, allocations: 4 kB / 1.097 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.495e-05/0.8439, allocations: 8 kB / 1.097 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.331e-05/0.844, allocations: 23.91 kB / 1.097 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.844, allocations: 0 / 1.097 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004962/0.8445, allocations: 231.3 kB / 1.097 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.8446, allocations: 4 kB / 1.097 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.8446, allocations: 41.62 kB / 1.097 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.8448, allocations: 81.86 kB / 1.097 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8448, allocations: 0 / 1.097 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8448, allocations: 0 / 1.097 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.8448, allocations: 0 / 1.097 GB, free: 13.95 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004284/0.8453, allocations: 331.5 kB / 1.097 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.8453, allocations: 16.03 kB / 1.097 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003467/0.8457, allocations: 28.91 kB / 1.098 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.8458, allocations: 164.3 kB / 1.098 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/0.8459, allocations: 29.64 kB / 1.098 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.8459, allocations: 0 / 1.098 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.8461, allocations: 53.67 kB / 1.098 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.8461, allocations: 0 / 1.098 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.8461, allocations: 3.984 kB / 1.098 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.8461, allocations: 4 kB / 1.098 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.705e-05/0.8462, allocations: 19.98 kB / 1.098 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.8466, allocations: 252.9 kB / 1.098 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.296e-05/0.8466, allocations: 30.5 kB / 1.098 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.211e-05/0.8467, allocations: 12.8 kB / 1.098 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.8468, allocations: 97.16 kB / 1.098 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.8469, allocations: 30.56 kB / 1.098 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.8469, allocations: 0 / 1.098 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000249/0.8471, allocations: 57.53 kB / 1.098 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.8472, allocations: 51.41 kB / 1.098 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.751e-05/0.8473, allocations: 105.9 kB / 1.098 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.8473, allocations: 33.7 kB / 1.098 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.8474, allocations: 91.92 kB / 1.099 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.8474, allocations: 7.906 kB / 1.099 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.8474, allocations: 9.719 kB / 1.099 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.8475, allocations: 314.8 kB / 1.099 GB, free: 12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.8476, allocations: 3.984 kB / 1.099 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.712e-05/0.8476, allocations: 26.58 kB / 1.099 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.773e-05/0.8476, allocations: 38.5 kB / 1.099 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.8476, allocations: 0 / 1.099 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.841e-05/0.8478, allocations: 49.64 kB / 1.099 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.8478, allocations: 4 kB / 1.099 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.8478, allocations: 4 kB / 1.099 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.8478, allocations: 3.984 kB / 1.099 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.533e-05/0.8479, allocations: 8.094 kB / 1.099 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.8479, allocations: 11.92 kB / 1.099 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.867e-05/0.8479, allocations: 0 / 1.099 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.8479, allocations: 0 / 1.099 GB, free: 11.82 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 0.0001179/0.848, allocations: 113.8 kB / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.8481, allocations: 0 / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.465e-05/0.8481, allocations: 7.125 kB / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.8481, allocations: 0 / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8481, allocations: 3.938 kB / 1.099 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.8481, allocations: 7.984 kB / 1.099 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003051/0.8484, allocations: 359.5 kB / 1.099 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.8485, allocations: 0 / 1.099 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-05/0.8485, allocations: 7.984 kB / 1.099 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.8485, allocations: 7.875 kB / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.8485, allocations: 8 kB / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.8485, allocations: 0 / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8485, allocations: 4 kB / 1.099 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.681e-05/0.8486, allocations: 70 kB / 1.1 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.8487, allocations: 85.03 kB / 1.1 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.8487, allocations: 0 / 1.1 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.8488, allocations: 8 kB / 1.1 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.21e-05/0.8488, allocations: 0 / 1.1 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.8488, allocations: 8.031 kB / 1.1 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.953e-05/0.8488, allocations: 83.55 kB / 1.1 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8489, allocations: 0 / 1.1 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001989/0.8491, allocations: 4 kB / 1.1 GB, free: 10.95 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.000132/0.8492, allocations: 115.3 kB / 1.1 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.379e-05/0.8493, allocations: 8.125 kB / 1.1 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8493, allocations: 4.062 kB / 1.1 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.291e-05/0.8493, allocations: 7.938 kB / 1.1 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.8495, allocations: 26.42 kB / 1.1 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002636/0.8498, allocations: 151.2 kB / 1.1 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.8501, allocations: 0.6811 MB / 1.101 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.8501, allocations: 7.438 kB / 1.101 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.8501, allocations: 0 / 1.101 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of Templates: time 0.002051/0.8522, allocations: 0.5976 MB / 1.101 GB, free: 9.285 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches