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.001526/0.001527, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001756/0.001756, allocations: 191.9 kB / 16.25 MB, free: 6.621 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.433/1.433, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.388/2.388, allocations: 390.2 MB / 0.6643 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8176/0.8199, allocations: 140.4 MB / 0.9491 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1791/0.999, allocations: 146.2 MB / 1.092 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001605/0.9992, allocations: 59.78 kB / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.9993, allocations: 0 / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.9994, allocations: 0 / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.9995, allocations: 11.91 kB / 1.092 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/1, allocations: 202.6 kB / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.43e-05/1, allocations: 31.86 kB / 1.092 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.787e-05/1, allocations: 7.984 kB / 1.092 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.138e-05/1, allocations: 11.98 kB / 1.092 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/1.001, allocations: 19.92 kB / 1.092 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/1.001, allocations: 0 / 1.092 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004708/1.001, allocations: 199.4 kB / 1.092 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/1.001, allocations: 11.97 kB / 1.092 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.953e-05/1.001, allocations: 15.94 kB / 1.092 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002695/1.001, allocations: 125.9 kB / 1.093 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/1.001, allocations: 0 / 1.093 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.332e-06/1.001, allocations: 0 / 1.093 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.41e-06/1.001, allocations: 0 / 1.093 GB, free: 14.79 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.0004316/1.002, allocations: 351.3 kB / 1.093 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/1.002, allocations: 8.031 kB / 1.093 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003346/1.002, allocations: 24.91 kB / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/1.002, allocations: 164.3 kB / 1.093 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.537e-05/1.002, allocations: 37.64 kB / 1.093 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/1.003, allocations: 3.984 kB / 1.093 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/1.003, allocations: 49.67 kB / 1.093 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/1.003, allocations: 0 / 1.093 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/1.003, allocations: 0 / 1.093 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/1.003, allocations: 4 kB / 1.093 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.877e-05/1.003, allocations: 19.98 kB / 1.093 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/1.003, allocations: 272.7 kB / 1.093 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.423e-05/1.003, allocations: 26.58 kB / 1.093 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/1.003, allocations: 8.922 kB / 1.093 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/1.003, allocations: 89.09 kB / 1.094 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/1.003, allocations: 34.56 kB / 1.094 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/1.004, allocations: 8 kB / 1.094 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002598/1.004, allocations: 49.62 kB / 1.094 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/1.004, allocations: 51.41 kB / 1.094 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.927e-05/1.004, allocations: 105.8 kB / 1.094 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/1.004, allocations: 25.7 kB / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.003e-05/1.004, allocations: 91.98 kB / 1.094 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.506e-06/1.004, allocations: 7.906 kB / 1.094 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/1.004, allocations: 17.84 kB / 1.094 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001183/1.004, allocations: 318.8 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.557e-05/1.004, allocations: 3.938 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.992e-05/1.004, allocations: 26.58 kB / 1.094 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.656e-05/1.004, allocations: 38.5 kB / 1.094 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.004, allocations: 0 / 1.094 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.476e-05/1.004, allocations: 53.62 kB / 1.094 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/1.004, allocations: 4 kB / 1.094 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/1.004, allocations: 4 kB / 1.094 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/1.004, allocations: 0 / 1.094 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.772e-05/1.005, allocations: 4 kB / 1.094 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/1.005, allocations: 11.88 kB / 1.094 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.695e-05/1.005, allocations: 0 / 1.094 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/1.005, allocations: 96 / 1.094 GB, free: 12.65 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 7.517e-05/1.005, allocations: 113.8 kB / 1.094 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/1.005, allocations: 4 kB / 1.094 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/1.005, allocations: 11.11 kB / 1.094 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/1.005, allocations: 0 / 1.094 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.005, allocations: 11.88 kB / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/1.005, allocations: 0 / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002958/1.005, allocations: 363.5 kB / 1.095 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.005, allocations: 0 / 1.095 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/1.005, allocations: 7.938 kB / 1.095 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/1.005, allocations: 3.938 kB / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/1.005, allocations: 4 kB / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.005, allocations: 0 / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.005, allocations: 0 / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.532e-05/1.005, allocations: 74.05 kB / 1.095 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.712e-05/1.005, allocations: 81.33 kB / 1.095 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/1.005, allocations: 0 / 1.095 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/1.005, allocations: 4 kB / 1.095 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/1.005, allocations: 7.984 kB / 1.095 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/1.005, allocations: 0 / 1.095 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.924e-05/1.005, allocations: 83.27 kB / 1.095 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.412e-06/1.005, allocations: 0 / 1.095 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002025/1.006, allocations: 11.94 kB / 1.095 GB, free: 11.77 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.0001245/1.006, allocations: 103.3 kB / 1.095 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.353e-05/1.006, allocations: 15.98 kB / 1.095 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.006, allocations: 0 / 1.095 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.222e-05/1.006, allocations: 7.938 kB / 1.095 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/1.006, allocations: 7.031 kB / 1.095 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002747/1.006, allocations: 131.4 kB / 1.095 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/1.007, allocations: 0.6768 MB / 1.096 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.415e-05/1.007, allocations: 11.94 kB / 1.096 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/1.007, allocations: 7.438 kB / 1.096 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/1.007, allocations: 0 / 1.096 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of Templates: time 0.002884/1.01, allocations: 0.5761 MB / 1.097 GB, free: 10.18 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches