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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.054/2.054, allocations: 387.4 MB / 394.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 176.6 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 221.5 MB / 0.7824 GB, free: 0.9023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008408/0.0008408, allocations: 95.91 kB / 0.9219 GB, free: 2.125 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.451e-05/1.453e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2105, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.597/3.807, allocations: 1.71 GB / 2.916 GB, free: 151.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/3.807, allocations: 70.14 kB / 2.916 GB, free: 151.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.06334/3.871, allocations: 36.69 MB / 2.952 GB, free: 121.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.422e-06/3.871, allocations: 0 / 2.952 GB, free: 121.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.145e-06/3.871, allocations: 4 kB / 2.952 GB, free: 121.3 MB / 1.151 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.0002401/3.871, allocations: 342.3 kB / 2.953 GB, free: 121 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/3.871, allocations: 8.562 kB / 2.953 GB, free: 121 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002307/3.871, allocations: 27.97 kB / 2.953 GB, free: 120.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.082e-05/3.871, allocations: 163.7 kB / 2.953 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.168e-05/3.871, allocations: 25.7 kB / 2.953 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/3.871, allocations: 4 kB / 2.953 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.435e-05/3.872, allocations: 19.92 kB / 2.953 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.254e-05/3.872, allocations: 45.62 kB / 2.953 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/3.872, allocations: 3.984 kB / 2.953 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/3.872, allocations: 7.938 kB / 2.953 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/3.872, allocations: 8 kB / 2.953 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003746/3.872, allocations: 330.5 kB / 2.953 GB, free: 120.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 2.539e-05/3.872, allocations: 18.52 kB / 2.953 GB, free: 120.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/3.872, allocations: 4.859 kB / 2.953 GB, free: 120.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-06/3.872, allocations: 8.062 kB / 2.953 GB, free: 120.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/3.872, allocations: 34.52 kB / 2.953 GB, free: 120.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/3.872, allocations: 0 / 2.953 GB, free: 120.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=1): time 0.0001669/3.872, allocations: 37.64 kB / 2.953 GB, free: 120.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.715e-05/3.872, allocations: 55.39 kB / 2.953 GB, free: 120 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.362e-05/3.872, allocations: 101 kB / 2.954 GB, free: 119.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/3.872, allocations: 25.7 kB / 2.954 GB, free: 119.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/3.872, allocations: 92.08 kB / 2.954 GB, free: 119.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.819e-06/3.872, allocations: 7.844 kB / 2.954 GB, free: 119.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/3.873, allocations: 4 kB / 2.954 GB, free: 119.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.202e-05/3.873, allocations: 314.8 kB / 2.954 GB, free: 119.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.158e-05/3.873, allocations: 4 kB / 2.954 GB, free: 119.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.659e-05/3.873, allocations: 22.58 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.7e-05/3.873, allocations: 8 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/3.873, allocations: 0 / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=4) (initialization): time 5.591e-05/3.873, allocations: 49.62 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/3.873, allocations: 8 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/3.873, allocations: 0 / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/3.873, allocations: 3.953 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.352e-05/3.873, allocations: 11.98 kB / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/3.873, allocations: 0 / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.287e-05/3.873, allocations: 0 / 2.954 GB, free: 119.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.109e-06/3.873, allocations: 8.094 kB / 2.954 GB, free: 119.3 MB / 1.151 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/3.873, allocations: 104.9 kB / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/3.873, allocations: 7.906 kB / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.515e-05/3.873, allocations: 3.75 kB / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/3.873, allocations: 0 / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/3.873, allocations: 3.953 kB / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/3.873, allocations: 0 / 2.954 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/3.873, allocations: 331.3 kB / 2.954 GB, free: 118.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/3.873, allocations: 0 / 2.954 GB, free: 118.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/3.873, allocations: 0 / 2.954 GB, free: 118.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/3.873, allocations: 4 kB / 2.954 GB, free: 118.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/3.873, allocations: 3.938 kB / 2.954 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/3.873, allocations: 7.891 kB / 2.954 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/3.873, allocations: 0 / 2.954 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.394e-05/3.873, allocations: 57.08 kB / 2.955 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 1.903e-05/3.873, allocations: 89.16 kB / 2.955 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/3.873, allocations: 0 / 2.955 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.111e-05/3.873, allocations: 4 kB / 2.955 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-06/3.873, allocations: 3.953 kB / 2.955 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-06/3.873, allocations: 0 / 2.955 GB, free: 118.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 2.213e-05/3.873, allocations: 79.28 kB / 2.955 GB, free: 118.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.1e-07/3.873, allocations: 0 / 2.955 GB, free: 118.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002202/3.874, allocations: 35.98 kB / 2.955 GB, free: 118.5 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005878/3.874, allocations: 0.6412 MB / 2.955 GB, free: 117.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 6.586e-05/3.874, allocations: 15.94 kB / 2.955 GB, free: 117.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/3.874, allocations: 0 / 2.955 GB, free: 117.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 4.759e-06/3.874, allocations: 4 kB / 2.955 GB, free: 117.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/3.874, allocations: 3.562 kB / 2.955 GB, free: 117.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001307/3.875, allocations: 56.44 kB / 2.955 GB, free: 117.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/3.875, allocations: 0.6807 MB / 2.956 GB, free: 117.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 5.317e-05/3.875, allocations: 12.23 kB / 2.956 GB, free: 117.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.574e-05/3.875, allocations: 7.438 kB / 2.956 GB, free: 117.1 MB / 1.151 GB Notification: Performance of SimCode: time 2.4e-07/3.875, allocations: 0 / 2.956 GB, free: 117.1 MB / 1.151 GB Notification: Performance of Templates: time 0.005649/3.88, allocations: 3.653 MB / 2.96 GB, free: 113.4 MB / 1.151 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","../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches