Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 82.05 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 173.7 kB / 23.28 MB, free: 1.215 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.026/1.026, allocations: 177.1 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.425/2.425, allocations: 438.1 MB / 0.682 GB, free: 14.13 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.8897 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.548e-05, allocations: 5.406 kB / 0.8897 GB, free: 9.773 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001632/0.001647, allocations: 1.34 MB / 0.891 GB, free: 8.422 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.1208/0.1224, allocations: 140.1 MB / 1.028 GB, free: 11.79 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.91e-05/0.1225, allocations: 0 / 1.028 GB, free: 11.79 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.1225, allocations: 3.938 kB / 1.028 GB, free: 11.79 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 5.345e-05/0.1226, allocations: 11.94 kB / 1.028 GB, free: 11.78 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.1229, allocations: 95.48 kB / 1.028 GB, free: 11.68 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 6.249e-05/0.123, allocations: 31.84 kB / 1.028 GB, free: 11.65 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.038e-05/0.123, allocations: 4 kB / 1.028 GB, free: 11.65 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 5.877e-05/0.123, allocations: 19.98 kB / 1.028 GB, free: 11.63 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.277e-05/0.1231, allocations: 15.91 kB / 1.028 GB, free: 11.61 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.1231, allocations: 0 / 1.028 GB, free: 11.61 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.1233, allocations: 79.75 kB / 1.028 GB, free: 11.54 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.1233, allocations: 15.98 kB / 1.028 GB, free: 11.52 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.1233, allocations: 8 kB / 1.028 GB, free: 11.51 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.1234, allocations: 75.75 kB / 1.028 GB, free: 11.44 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1234, allocations: 0 / 1.028 GB, free: 11.44 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1234, allocations: 0 / 1.028 GB, free: 11.44 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.1234, allocations: 0 / 1.028 GB, free: 11.44 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002957/0.1237, allocations: 380.1 kB / 1.029 GB, free: 11.03 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1238, allocations: 8.625 kB / 1.029 GB, free: 11.02 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.1239, allocations: 28.8 kB / 1.029 GB, free: 11 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.496e-05/0.124, allocations: 116.5 kB / 1.029 GB, free: 10.86 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.124, allocations: 8.375 kB / 1.029 GB, free: 10.85 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.124, allocations: 4.375 kB / 1.029 GB, free: 10.84 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.386e-05/0.1241, allocations: 126.7 kB / 1.029 GB, free: 10.7 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.1241, allocations: 0 / 1.029 GB, free: 10.7 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.1241, allocations: 0 / 1.029 GB, free: 10.7 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.1241, allocations: 4 kB / 1.029 GB, free: 10.69 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.343e-05/0.1241, allocations: 15.92 kB / 1.029 GB, free: 10.68 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.395e-05/0.1242, allocations: 105.2 kB / 1.029 GB, free: 10.55 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.417e-05/0.1243, allocations: 46.98 kB / 1.029 GB, free: 10.49 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.735e-05/0.1243, allocations: 23.67 kB / 1.029 GB, free: 10.46 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.1243, allocations: 4 kB / 1.029 GB, free: 10.46 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.1243, allocations: 37.39 kB / 1.029 GB, free: 10.41 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=7): time 6.82e-07/0.1243, allocations: 0 / 1.029 GB, free: 10.41 MB / 0.9948 GB Notification: Performance of matching and sorting (n=11): time 0.0004298/0.1248, allocations: 296.7 kB / 1.029 GB, free: 10.09 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.1248, allocations: 55.41 kB / 1.029 GB, free: 10.02 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.1248, allocations: 157.9 kB / 1.03 GB, free: 9.848 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.1248, allocations: 25.7 kB / 1.03 GB, free: 9.816 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.1249, allocations: 130.9 kB / 1.03 GB, free: 9.684 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.1249, allocations: 39.78 kB / 1.03 GB, free: 9.645 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.1249, allocations: 39.34 kB / 1.03 GB, free: 9.598 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.125, allocations: 496.1 kB / 1.03 GB, free: 9.102 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.125, allocations: 11.98 kB / 1.03 GB, free: 9.09 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.537e-05/0.1251, allocations: 31.38 kB / 1.03 GB, free: 9.051 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.561e-05/0.1251, allocations: 55.81 kB / 1.03 GB, free: 8.988 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1251, allocations: 0 / 1.03 GB, free: 8.988 MB / 0.9948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 7.376e-05/0.1252, allocations: 89.55 kB / 1.03 GB, free: 8.895 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/0.1252, allocations: 4 kB / 1.03 GB, free: 8.891 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1252, allocations: 0 / 1.03 GB, free: 8.891 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1252, allocations: 8 kB / 1.03 GB, free: 8.883 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.501e-05/0.1253, allocations: 23.92 kB / 1.03 GB, free: 8.859 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-06/0.1253, allocations: 4 kB / 1.03 GB, free: 8.855 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.1253, allocations: 0 / 1.03 GB, free: 8.855 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.1253, allocations: 4 kB / 1.03 GB, free: 8.852 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (14): * Single equations (assignments): 14 * 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 5.506e-05/0.1254, allocations: 156.6 kB / 1.031 GB, free: 8.688 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.1254, allocations: 19.89 kB / 1.031 GB, free: 8.668 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.1254, allocations: 11.97 kB / 1.031 GB, free: 8.652 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1254, allocations: 0 / 1.031 GB, free: 8.652 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.1254, allocations: 0 / 1.031 GB, free: 8.652 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1254, allocations: 0 / 1.031 GB, free: 8.652 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.718e-05/0.1255, allocations: 117.2 kB / 1.031 GB, free: 8.512 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1255, allocations: 0 / 1.031 GB, free: 8.512 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.307e-05/0.1255, allocations: 27.92 kB / 1.031 GB, free: 8.484 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.51e-07/0.1255, allocations: 0 / 1.031 GB, free: 8.484 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.1255, allocations: 3.938 kB / 1.031 GB, free: 8.48 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.1255, allocations: 0 / 1.031 GB, free: 8.48 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1255, allocations: 0 / 1.031 GB, free: 8.48 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001171/0.1257, allocations: 136.3 kB / 1.031 GB, free: 8.324 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.1257, allocations: 7.984 kB / 1.031 GB, free: 8.316 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.1257, allocations: 3.938 kB / 1.031 GB, free: 8.312 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.214e-05/0.1257, allocations: 4 kB / 1.031 GB, free: 8.309 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/0.1258, allocations: 15.92 kB / 1.031 GB, free: 8.293 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1258, allocations: 4 kB / 1.031 GB, free: 8.289 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 2.778e-05/0.1258, allocations: 119.2 kB / 1.031 GB, free: 8.172 MB / 0.9948 GB Notification: Performance of sort global known variables: time 5e-08/0.1258, allocations: 0 / 1.031 GB, free: 8.172 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0001196/0.1259, allocations: 16 kB / 1.031 GB, free: 8.156 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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 8.2e-05/0.126, allocations: 99.28 kB / 1.031 GB, free: 8.047 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 7.643e-05/0.1261, allocations: 55.59 kB / 1.031 GB, free: 7.988 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.1261, allocations: 0 / 1.031 GB, free: 7.988 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 2.175e-05/0.1261, allocations: 35.7 kB / 1.031 GB, free: 7.949 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.1262, allocations: 15.98 kB / 1.031 GB, free: 7.934 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004587/0.1267, allocations: 273.7 kB / 1.032 GB, free: 7.637 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.87e-05/0.1267, allocations: 59.3 kB / 1.032 GB, free: 7.559 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 3.822e-05/0.1268, allocations: 16.72 kB / 1.032 GB, free: 7.543 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.1268, allocations: 86.19 kB / 1.032 GB, free: 7.457 MB / 0.9948 GB Notification: Performance of SimCode: time 7.11e-07/0.1268, allocations: 4 kB / 1.032 GB, free: 7.453 MB / 0.9948 GB Notification: Performance of Templates: time 0.002243/0.1291, allocations: 0.9481 MB / 1.033 GB, free: 6.531 MB / 0.9948 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.567923331167549]