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.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.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.007658/0.007658, allocations: 102.2 kB / 15.73 MB, free: 5.516 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.001505/0.001505, allocations: 203.2 kB / 16.68 MB, free: 5.445 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: 222.9 MB / 240.4 MB, free: 4.125 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.577/2.577, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 62.22 kB / 0.9508 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3235, allocations: 140.4 MB / 1.088 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.176/0.4995, allocations: 148.3 MB / 1.233 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001625/0.4997, allocations: 47.86 kB / 1.233 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.833e-05/0.4998, allocations: 0 / 1.233 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.5, allocations: 11.92 kB / 1.233 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.677e-05/0.5001, allocations: 15.92 kB / 1.233 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008481/0.5009, allocations: 215.2 kB / 1.233 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.175e-05/0.501, allocations: 31.84 kB / 1.233 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.5011, allocations: 15.94 kB / 1.233 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.538e-05/0.5011, allocations: 15.92 kB / 1.233 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.5012, allocations: 15.98 kB / 1.233 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.5012, allocations: 0 / 1.233 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004272/0.5017, allocations: 195.4 kB / 1.233 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.461e-05/0.5017, allocations: 19.91 kB / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.986e-05/0.5018, allocations: 7.984 kB / 1.233 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.502, allocations: 111.7 kB / 1.233 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.502, allocations: 0 / 1.233 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.522e-06/0.502, allocations: 0 / 1.233 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.502, allocations: 0 / 1.233 GB, free: 11.98 MB / 0.9981 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.0004598/0.5025, allocations: 355.3 kB / 1.234 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.5026, allocations: 8.031 kB / 1.234 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.5029, allocations: 24.91 kB / 1.234 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.503, allocations: 160.4 kB / 1.234 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/0.5031, allocations: 33.58 kB / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.5031, allocations: 4 kB / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.5033, allocations: 49.67 kB / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.5033, allocations: 0 / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.5033, allocations: 4 kB / 1.234 GB, free: 11.26 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.5033, allocations: 0 / 1.234 GB, free: 11.26 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.416e-05/0.5034, allocations: 23.98 kB / 1.234 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003863/0.5038, allocations: 256.9 kB / 1.234 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.757e-05/0.5039, allocations: 30.45 kB / 1.234 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.245e-05/0.5039, allocations: 8.922 kB / 1.234 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.504, allocations: 97.09 kB / 1.234 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.5041, allocations: 30.56 kB / 1.234 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.5041, allocations: 0 / 1.234 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002439/0.5043, allocations: 53.64 kB / 1.234 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.5044, allocations: 55.34 kB / 1.235 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.678e-05/0.5045, allocations: 109.9 kB / 1.235 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.5045, allocations: 29.7 kB / 1.235 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.5046, allocations: 84.09 kB / 1.235 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.183e-06/0.5046, allocations: 3.953 kB / 1.235 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.5046, allocations: 21.7 kB / 1.235 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5048, allocations: 314.8 kB / 1.235 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.519e-05/0.5048, allocations: 0 / 1.235 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.465e-05/0.5048, allocations: 38.73 kB / 1.235 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.321e-05/0.5049, allocations: 30.52 kB / 1.235 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5049, allocations: 0 / 1.235 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.951e-05/0.505, allocations: 53.62 kB / 1.235 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.505, allocations: 4 kB / 1.235 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.505, allocations: 4.094 kB / 1.235 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.505, allocations: 7.938 kB / 1.235 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.631e-05/0.5051, allocations: 4 kB / 1.235 GB, free: 9.859 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.5051, allocations: 3.938 kB / 1.235 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.925e-05/0.5051, allocations: 7.938 kB / 1.235 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.5051, allocations: 0 / 1.235 GB, free: 9.848 MB / 0.9981 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 8.78e-05/0.5052, allocations: 117.8 kB / 1.235 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.5053, allocations: 0 / 1.235 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.5053, allocations: 3.125 kB / 1.235 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.5053, allocations: 8 kB / 1.235 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5053, allocations: 7.938 kB / 1.235 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.5053, allocations: 0 / 1.235 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.5056, allocations: 363.5 kB / 1.236 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.5056, allocations: 0 / 1.236 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.58e-05/0.5057, allocations: 4 kB / 1.236 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.5057, allocations: 3.938 kB / 1.236 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.5057, allocations: 64 / 1.236 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5057, allocations: 11.94 kB / 1.236 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5057, allocations: 3.938 kB / 1.236 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.378e-05/0.5058, allocations: 65.98 kB / 1.236 GB, free: 9.176 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.5058, allocations: 85.05 kB / 1.236 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.5058, allocations: 0 / 1.236 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.5059, allocations: 4 kB / 1.236 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.954e-05/0.506, allocations: 12.02 kB / 1.236 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.506, allocations: 0 / 1.236 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.733e-05/0.506, allocations: 79.28 kB / 1.236 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.506, allocations: 0 / 1.236 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001927/0.5062, allocations: 8 kB / 1.236 GB, free: 8.973 MB / 0.9981 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.000142/0.5064, allocations: 101.3 kB / 1.236 GB, free: 8.867 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.786e-05/0.5065, allocations: 27.92 kB / 1.236 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5065, allocations: 0 / 1.236 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.111e-05/0.5065, allocations: 7.938 kB / 1.236 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.5067, allocations: 8 kB / 1.236 GB, free: 8.824 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002743/0.507, allocations: 111.4 kB / 1.236 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.5073, allocations: 0.6849 MB / 1.237 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.983e-05/0.5074, allocations: 8 kB / 1.237 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.126e-05/0.5074, allocations: 7.438 kB / 1.237 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of SimCode: time 2.21e-07/0.5074, allocations: 0 / 1.237 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of Templates: time 0.002827/0.5102, allocations: 0.5897 MB / 1.237 GB, free: 7.375 MB / 0.9981 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches