Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.488/1.488, allocations: 249.3 MB / 261.8 MB, free: 5.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001394/0.001394, allocations: 184.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008468/0.0008468, allocations: 102.4 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.721e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2338, allocations: 106.3 MB / 0.8918 GB, free: 6.703 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 13.32/13.55, allocations: 4.605 GB / 5.497 GB, free: 23.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/13.55, allocations: 83.95 kB / 5.497 GB, free: 23.62 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7294/14.28, allocations: 45.14 MB / 5.541 GB, free: 298 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.393e-06/14.28, allocations: 0 / 5.541 GB, free: 298 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.841e-06/14.28, allocations: 0 / 5.541 GB, free: 298 MB / 0.8698 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.0002758/14.28, allocations: 328.9 kB / 5.541 GB, free: 297.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/14.28, allocations: 13.5 kB / 5.541 GB, free: 297.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/14.28, allocations: 16.19 kB / 5.541 GB, free: 297.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/14.28, allocations: 170.2 kB / 5.541 GB, free: 297.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.36e-05/14.28, allocations: 31.14 kB / 5.541 GB, free: 297.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/14.28, allocations: 1.562 kB / 5.541 GB, free: 297.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/14.28, allocations: 47.39 kB / 5.541 GB, free: 297.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/14.28, allocations: 0 / 5.541 GB, free: 297.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/14.28, allocations: 0 / 5.541 GB, free: 297.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/14.28, allocations: 4.938 kB / 5.541 GB, free: 297.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.795e-05/14.28, allocations: 21.42 kB / 5.541 GB, free: 297.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/14.28, allocations: 267.4 kB / 5.542 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.662e-05/14.28, allocations: 20.92 kB / 5.542 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/14.28, allocations: 6.266 kB / 5.542 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-06/14.28, allocations: 0 / 5.542 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/14.28, allocations: 35.38 kB / 5.542 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/14.28, allocations: 0 / 5.542 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001231/14.28, allocations: 50.17 kB / 5.542 GB, free: 297 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/14.28, allocations: 52.53 kB / 5.542 GB, free: 297 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.393e-05/14.28, allocations: 93.5 kB / 5.542 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/14.28, allocations: 27.05 kB / 5.542 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/14.28, allocations: 90.84 kB / 5.542 GB, free: 296.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.664e-06/14.28, allocations: 9.25 kB / 5.542 GB, free: 296.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/14.28, allocations: 0 / 5.542 GB, free: 296.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.9e-05/14.28, allocations: 315.6 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/14.28, allocations: 6.656 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.464e-05/14.28, allocations: 20.02 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.435e-05/14.28, allocations: 12.86 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/14.28, allocations: 0 / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.573e-05/14.28, allocations: 55.31 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/14.28, allocations: 9.594 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/14.28, allocations: 1.312 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/14.28, allocations: 0 / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.89e-05/14.28, allocations: 6.812 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/14.28, allocations: 3.953 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.565e-05/14.28, allocations: 2.719 kB / 5.542 GB, free: 296.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/14.28, allocations: 1.312 kB / 5.542 GB, free: 296.4 MB / 0.8698 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 5.243e-05/14.28, allocations: 106.9 kB / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.312e-05/14.28, allocations: 1.312 kB / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.24e-05/14.28, allocations: 19.97 kB / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/14.28, allocations: 0 / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/14.28, allocations: 1.344 kB / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/14.28, allocations: 3.953 kB / 5.542 GB, free: 296.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/14.28, allocations: 344.3 kB / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/14.28, allocations: 0 / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/14.28, allocations: 5.25 kB / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/14.28, allocations: 1.406 kB / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/14.28, allocations: 0 / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/14.28, allocations: 7.984 kB / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/14.28, allocations: 5.391 kB / 5.543 GB, free: 295.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.747e-05/14.28, allocations: 58.05 kB / 5.543 GB, free: 295.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.294e-05/14.28, allocations: 77.11 kB / 5.543 GB, free: 295.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/14.28, allocations: 5.312 kB / 5.543 GB, free: 295.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.672e-05/14.28, allocations: 8.062 kB / 5.543 GB, free: 295.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/14.28, allocations: 11.92 kB / 5.543 GB, free: 295.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-06/14.28, allocations: 1.438 kB / 5.543 GB, free: 295.7 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.3e-05/14.28, allocations: 84.06 kB / 5.543 GB, free: 295.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/14.28, allocations: 0 / 5.543 GB, free: 295.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003254/14.28, allocations: 40.66 kB / 5.543 GB, free: 295.6 MB / 0.8698 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.000697/14.28, allocations: 0.5604 MB / 5.544 GB, free: 295.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 8.11e-05/14.28, allocations: 14.94 kB / 5.544 GB, free: 295.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/14.28, allocations: 1.25 kB / 5.544 GB, free: 295.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.143e-06/14.28, allocations: 3.969 kB / 5.544 GB, free: 295.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/14.28, allocations: 1.906 kB / 5.544 GB, free: 295.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/14.28, allocations: 61.2 kB / 5.544 GB, free: 295.3 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/14.28, allocations: 0.6821 MB / 5.544 GB, free: 294.6 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.296e-05/14.28, allocations: 11.2 kB / 5.544 GB, free: 294.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.089e-05/14.28, allocations: 8.656 kB / 5.544 GB, free: 294.6 MB / 0.8698 GB Notification: Performance of SimCode: time 3.1e-07/14.28, allocations: 3 kB / 5.544 GB, free: 294.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.01431/14.3, allocations: 9.596 MB / 5.554 GB, free: 293.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & ./Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches