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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001583/0.001583, allocations: 116.3 kB / 16.37 MB, free: 6.012 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.001844/0.001844, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.214/2.214, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 67.66 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2667, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.636/0.9027, allocations: 148.3 MB / 1.096 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001505/0.9029, allocations: 51.38 kB / 1.096 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.512e-05/0.9029, allocations: 0.875 kB / 1.096 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.903, allocations: 5.281 kB / 1.096 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.775e-05/0.9031, allocations: 17.28 kB / 1.096 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008615/0.9041, allocations: 207 kB / 1.096 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.9042, allocations: 35.56 kB / 1.096 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.155e-05/0.9042, allocations: 2.859 kB / 1.096 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.94e-05/0.9043, allocations: 14.39 kB / 1.096 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.379e-05/0.9043, allocations: 17.5 kB / 1.096 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.9044, allocations: 0.5625 kB / 1.096 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004327/0.9048, allocations: 197.5 kB / 1.096 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.12e-05/0.9049, allocations: 11.8 kB / 1.096 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.9049, allocations: 12.91 kB / 1.096 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.9052, allocations: 115.8 kB / 1.097 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.9052, allocations: 1.516 kB / 1.097 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9052, allocations: 0 / 1.097 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.9053, allocations: 0 / 1.097 GB, free: 5.664 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.0007816/0.906, allocations: 349.3 kB / 1.097 GB, free: 21.3 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.9061, allocations: 10.75 kB / 1.097 GB, free: 21.3 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004035/0.9065, allocations: 27.52 kB / 1.097 GB, free: 21.3 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.9067, allocations: 162.6 kB / 1.097 GB, free: 21.11 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.426e-05/0.9068, allocations: 31.92 kB / 1.097 GB, free: 21.07 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.9068, allocations: 3.062 kB / 1.097 GB, free: 21.07 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.9069, allocations: 50.97 kB / 1.097 GB, free: 21.04 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.9069, allocations: 4 kB / 1.097 GB, free: 21.04 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.907, allocations: 0.6562 kB / 1.097 GB, free: 21.04 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.907, allocations: 3.516 kB / 1.097 GB, free: 21.04 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.44e-05/0.9071, allocations: 22.67 kB / 1.097 GB, free: 21.04 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003752/0.9074, allocations: 262.9 kB / 1.097 GB, free: 20.77 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 5.297e-05/0.9075, allocations: 20.73 kB / 1.097 GB, free: 20.74 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.21e-05/0.9075, allocations: 15.36 kB / 1.097 GB, free: 20.73 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001665/0.9077, allocations: 95.02 kB / 1.098 GB, free: 20.64 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.9077, allocations: 31.5 kB / 1.098 GB, free: 20.6 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.9078, allocations: 3.938 kB / 1.098 GB, free: 20.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=2): time 0.0002597/0.908, allocations: 48.97 kB / 1.098 GB, free: 20.56 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.9081, allocations: 56.83 kB / 1.098 GB, free: 20.5 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.871e-05/0.9082, allocations: 106.3 kB / 1.098 GB, free: 20.39 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.9082, allocations: 25.7 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.9082, allocations: 93.36 kB / 1.098 GB, free: 20.27 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.844e-06/0.9083, allocations: 7.109 kB / 1.098 GB, free: 20.27 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/0.9083, allocations: 17.45 kB / 1.098 GB, free: 20.25 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.9084, allocations: 313.8 kB / 1.098 GB, free: 19.94 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.892e-05/0.9084, allocations: 3.562 kB / 1.098 GB, free: 19.94 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.683e-05/0.9085, allocations: 30.86 kB / 1.098 GB, free: 19.91 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.242e-05/0.9085, allocations: 30.98 kB / 1.098 GB, free: 19.89 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.9085, allocations: 0 / 1.098 GB, free: 19.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.765e-05/0.9086, allocations: 52.56 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.9086, allocations: 10.67 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.9087, allocations: 0.5938 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.9087, allocations: 2.406 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.178e-05/0.9087, allocations: 7 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.9088, allocations: 0.7812 kB / 1.098 GB, free: 19.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.9088, allocations: 11.09 kB / 1.098 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.9088, allocations: 2.203 kB / 1.098 GB, free: 19.85 MB / 0.8731 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.805e-05/0.9089, allocations: 112.8 kB / 1.099 GB, free: 19.74 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.9089, allocations: 2.828 kB / 1.099 GB, free: 19.74 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.909, allocations: 16.03 kB / 1.099 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.909, allocations: 0.8438 kB / 1.099 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.909, allocations: 0 / 1.099 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.909, allocations: 6.891 kB / 1.099 GB, free: 19.72 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.9093, allocations: 360.8 kB / 1.099 GB, free: 19.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.9093, allocations: 1.406 kB / 1.099 GB, free: 19.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/0.9093, allocations: 5.656 kB / 1.099 GB, free: 19.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.9094, allocations: 4.844 kB / 1.099 GB, free: 19.33 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.9094, allocations: 4.781 kB / 1.099 GB, free: 19.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.9094, allocations: 1.797 kB / 1.099 GB, free: 19.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.9094, allocations: 0.8125 kB / 1.099 GB, free: 19.33 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.43e-05/0.9095, allocations: 68.38 kB / 1.099 GB, free: 19.26 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.9095, allocations: 82.84 kB / 1.099 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.9096, allocations: 8 kB / 1.099 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.15e-05/0.9096, allocations: 8.562 kB / 1.099 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.813e-05/0.9097, allocations: 2.172 kB / 1.099 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.9097, allocations: 0.9375 kB / 1.099 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.328e-05/0.9097, allocations: 80.56 kB / 1.099 GB, free: 19.08 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9097, allocations: 0.875 kB / 1.099 GB, free: 19.08 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001997/0.9099, allocations: 10.25 kB / 1.099 GB, free: 19.08 MB / 0.8731 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.000136/0.9101, allocations: 108.3 kB / 1.099 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 9.085e-05/0.9102, allocations: 15.27 kB / 1.099 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9102, allocations: 0.9375 kB / 1.099 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.286e-05/0.9102, allocations: 11.06 kB / 1.099 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.9105, allocations: 8 kB / 1.099 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.9107, allocations: 120.3 kB / 1.099 GB, free: 18.87 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.911, allocations: 0.677 MB / 1.1 GB, free: 18.17 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.574e-05/0.9111, allocations: 5.906 kB / 1.1 GB, free: 18.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.9111, allocations: 11.25 kB / 1.1 GB, free: 18.16 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.9111, allocations: 0 / 1.1 GB, free: 18.16 MB / 0.8731 GB Notification: Performance of Templates: time 0.002996/0.9141, allocations: 0.5841 MB / 1.101 GB, free: 18.1 MB / 0.8731 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches