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.00164/0.00164, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001175/0.001175, allocations: 193 kB / 16.14 MB, free: 6.719 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.436/2.436, allocations: 390.2 MB / 0.6642 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 71.89 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8204/0.8216, allocations: 140.3 MB / 0.9489 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1752/0.9968, allocations: 146 MB / 1.092 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001682/0.9971, allocations: 59.8 kB / 1.092 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.354e-05/0.9971, allocations: 0 / 1.092 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.9973, allocations: 0 / 1.092 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.9974, allocations: 15.92 kB / 1.092 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009359/0.9984, allocations: 203 kB / 1.092 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.9985, allocations: 55.83 kB / 1.092 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.866e-05/0.9985, allocations: 7.984 kB / 1.092 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.692e-05/0.9986, allocations: 19.92 kB / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.479e-05/0.9987, allocations: 11.98 kB / 1.092 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.9987, allocations: 0 / 1.092 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000537/0.9992, allocations: 223.3 kB / 1.092 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.9993, allocations: 7.984 kB / 1.092 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.357e-05/0.9994, allocations: 27.91 kB / 1.092 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.9997, allocations: 125.7 kB / 1.092 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.9997, allocations: 0 / 1.092 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.343e-06/0.9997, allocations: 0 / 1.092 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.9998, allocations: 0 / 1.092 GB, free: 14.82 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.0004771/1, allocations: 343.5 kB / 1.093 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/1, allocations: 8.031 kB / 1.093 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003787/1.001, allocations: 24.91 kB / 1.093 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/1.001, allocations: 168.3 kB / 1.093 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/1.001, allocations: 37.64 kB / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/1.001, allocations: 0 / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/1.001, allocations: 49.67 kB / 1.093 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/1.001, allocations: 0 / 1.093 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/1.001, allocations: 0 / 1.093 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/1.001, allocations: 4 kB / 1.093 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.653e-05/1.001, allocations: 19.98 kB / 1.093 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004521/1.002, allocations: 264.8 kB / 1.093 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.479e-05/1.002, allocations: 26.52 kB / 1.093 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.526e-05/1.002, allocations: 8.922 kB / 1.093 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001777/1.002, allocations: 89.09 kB / 1.093 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/1.002, allocations: 38.5 kB / 1.093 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/1.002, allocations: 4 kB / 1.093 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003026/1.002, allocations: 49.69 kB / 1.093 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/1.002, allocations: 55.34 kB / 1.093 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.867e-05/1.002, allocations: 105.8 kB / 1.093 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/1.002, allocations: 25.7 kB / 1.093 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/1.003, allocations: 95.97 kB / 1.094 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.798e-06/1.003, allocations: 7.844 kB / 1.094 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/1.003, allocations: 21.84 kB / 1.094 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.003, allocations: 318.8 kB / 1.094 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.681e-05/1.003, allocations: 0 / 1.094 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.141e-05/1.003, allocations: 26.58 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.438e-05/1.003, allocations: 42.5 kB / 1.094 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.003, allocations: 0 / 1.094 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.302e-05/1.003, allocations: 53.62 kB / 1.094 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/1.003, allocations: 4 kB / 1.094 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/1.003, allocations: 0 / 1.094 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/1.003, allocations: 4 kB / 1.094 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.961e-05/1.003, allocations: 4 kB / 1.094 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/1.003, allocations: 7.922 kB / 1.094 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.893e-05/1.003, allocations: 4 kB / 1.094 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/1.003, allocations: 4.094 kB / 1.094 GB, free: 12.68 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 9.231e-05/1.003, allocations: 109.8 kB / 1.094 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/1.003, allocations: 3.984 kB / 1.094 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.727e-05/1.003, allocations: 11.12 kB / 1.094 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.003, allocations: 0 / 1.094 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.003, allocations: 3.938 kB / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/1.003, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/1.004, allocations: 367.5 kB / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.004, allocations: 0 / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.871e-05/1.004, allocations: 4 kB / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/1.004, allocations: 3.938 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/1.004, allocations: 4.281 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/1.004, allocations: 3.938 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/1.004, allocations: 0 / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.689e-05/1.004, allocations: 70.05 kB / 1.095 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.671e-05/1.004, allocations: 89.03 kB / 1.095 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/1.004, allocations: 0 / 1.095 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.342e-05/1.004, allocations: 4 kB / 1.095 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.713e-05/1.004, allocations: 0 / 1.095 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/1.004, allocations: 4 kB / 1.095 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.051e-05/1.004, allocations: 83.27 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.675e-06/1.004, allocations: 3.938 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001948/1.004, allocations: 15.97 kB / 1.095 GB, free: 11.8 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.0001607/1.004, allocations: 103.2 kB / 1.095 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.381e-05/1.005, allocations: 15.98 kB / 1.095 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.005, allocations: 0 / 1.095 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.276e-05/1.005, allocations: 7.938 kB / 1.095 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/1.005, allocations: 16.19 kB / 1.095 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/1.005, allocations: 121.2 kB / 1.095 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/1.006, allocations: 0.677 MB / 1.096 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.575e-05/1.006, allocations: 8 kB / 1.096 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.376e-05/1.006, allocations: 7.438 kB / 1.096 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of SimCode: time 4.21e-07/1.006, allocations: 0 / 1.096 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of Templates: time 0.002996/1.009, allocations: 0.5654 MB / 1.096 GB, free: 10.22 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