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.001312/0.001312, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.00156/0.00156, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.02/1.02, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.098/2.098, allocations: 429.5 MB / 0.6743 GB, free: 3.91 MB / 0.6355 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.483e-06/1.483e-06, allocations: 0 / 0.8794 GB, free: 6.066 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.628e-05, allocations: 5.125 kB / 0.8794 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001962/0.001988, allocations: 1.329 MB / 0.8807 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.1317/0.1337, allocations: 140.1 MB / 1.017 GB, free: 8.125 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.278e-05/0.1337, allocations: 0 / 1.017 GB, free: 8.125 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 2.358e-05/0.1337, allocations: 7.984 kB / 1.017 GB, free: 8.117 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 5.021e-05/0.1338, allocations: 7.875 kB / 1.018 GB, free: 8.109 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1341, allocations: 91.5 kB / 1.018 GB, free: 8.02 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 6.867e-05/0.1342, allocations: 31.86 kB / 1.018 GB, free: 7.988 MB / 0.9792 GB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.1342, allocations: 11.97 kB / 1.018 GB, free: 7.977 MB / 0.9792 GB Notification: Performance of NFEvalConstants.evaluate: time 5.531e-05/0.1343, allocations: 15.98 kB / 1.018 GB, free: 7.961 MB / 0.9792 GB Notification: Performance of NFSimplifyModel.simplify: time 5.603e-05/0.1343, allocations: 19.91 kB / 1.018 GB, free: 7.941 MB / 0.9792 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.1344, allocations: 0 / 1.018 GB, free: 7.941 MB / 0.9792 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.1345, allocations: 79.77 kB / 1.018 GB, free: 7.863 MB / 0.9792 GB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.1345, allocations: 11.92 kB / 1.018 GB, free: 7.852 MB / 0.9792 GB Notification: Performance of NFVerifyModel.verify: time 1.747e-05/0.1346, allocations: 11.98 kB / 1.018 GB, free: 7.84 MB / 0.9792 GB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.1347, allocations: 71.81 kB / 1.018 GB, free: 7.77 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1347, allocations: 0 / 1.018 GB, free: 7.77 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1347, allocations: 0 / 1.018 GB, free: 7.77 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.1347, allocations: 0 / 1.018 GB, free: 7.77 MB / 0.9792 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.0003216/0.135, allocations: 392.4 kB / 1.018 GB, free: 7.352 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.135, allocations: 8.031 kB / 1.018 GB, free: 7.344 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.1352, allocations: 20.88 kB / 1.018 GB, free: 7.324 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.417e-05/0.1353, allocations: 116.5 kB / 1.018 GB, free: 7.184 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1353, allocations: 4.375 kB / 1.018 GB, free: 7.18 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.1353, allocations: 8.375 kB / 1.018 GB, free: 7.172 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.719e-05/0.1354, allocations: 126.7 kB / 1.018 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.1354, allocations: 0 / 1.018 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.1354, allocations: 0 / 1.018 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1354, allocations: 0 / 1.018 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.49e-05/0.1354, allocations: 11.98 kB / 1.018 GB, free: 7.012 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.1355, allocations: 109.2 kB / 1.019 GB, free: 6.879 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 6.006e-05/0.1356, allocations: 51.05 kB / 1.019 GB, free: 6.816 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.1356, allocations: 19.69 kB / 1.019 GB, free: 6.793 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 6.944e-06/0.1356, allocations: 4 kB / 1.019 GB, free: 6.789 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.872e-05/0.1356, allocations: 33.39 kB / 1.019 GB, free: 6.746 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1356, allocations: 0 / 1.019 GB, free: 6.746 MB / 0.9792 GB Notification: Performance of matching and sorting (n=11): time 0.0004394/0.1361, allocations: 297.6 kB / 1.019 GB, free: 6.418 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.1361, allocations: 59.34 kB / 1.019 GB, free: 6.348 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.557e-05/0.1362, allocations: 153.9 kB / 1.019 GB, free: 6.18 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.1362, allocations: 25.7 kB / 1.019 GB, free: 6.148 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 2.949e-05/0.1362, allocations: 131 kB / 1.019 GB, free: 6.016 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.1362, allocations: 43.62 kB / 1.019 GB, free: 5.973 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.1363, allocations: 39.36 kB / 1.019 GB, free: 5.926 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1364, allocations: 496.1 kB / 1.02 GB, free: 5.43 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.1364, allocations: 8 kB / 1.02 GB, free: 5.422 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.605e-05/0.1364, allocations: 35.34 kB / 1.02 GB, free: 5.379 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.52e-05/0.1365, allocations: 51.88 kB / 1.02 GB, free: 5.32 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.1365, allocations: 0 / 1.02 GB, free: 5.32 MB / 0.9792 GB Notification: Performance of matching and sorting (n=14) (initialization): time 7.953e-05/0.1365, allocations: 89.55 kB / 1.02 GB, free: 5.227 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1365, allocations: 4 kB / 1.02 GB, free: 5.223 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1366, allocations: 4 kB / 1.02 GB, free: 5.219 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/0.1366, allocations: 0 / 1.02 GB, free: 5.219 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.717e-05/0.1366, allocations: 27.92 kB / 1.02 GB, free: 5.191 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-06/0.1366, allocations: 0 / 1.02 GB, free: 5.191 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.1366, allocations: 4 kB / 1.02 GB, free: 5.188 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-06/0.1367, allocations: 0 / 1.02 GB, free: 5.188 MB / 0.9792 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.888e-05/0.1367, allocations: 160.6 kB / 1.02 GB, free: 5.02 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.1367, allocations: 15.89 kB / 1.02 GB, free: 5.004 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.503e-05/0.1368, allocations: 11.95 kB / 1.02 GB, free: 4.992 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1368, allocations: 4 kB / 1.02 GB, free: 4.988 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1368, allocations: 4 kB / 1.02 GB, free: 4.984 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1368, allocations: 4 kB / 1.02 GB, free: 4.98 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.74e-05/0.1368, allocations: 109.2 kB / 1.02 GB, free: 4.848 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1368, allocations: 3.984 kB / 1.02 GB, free: 4.844 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.561e-05/0.1369, allocations: 23.92 kB / 1.02 GB, free: 4.82 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1369, allocations: 0 / 1.02 GB, free: 4.82 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.1369, allocations: 11.88 kB / 1.02 GB, free: 4.809 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.1369, allocations: 0 / 1.02 GB, free: 4.809 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.1369, allocations: 0 / 1.02 GB, free: 4.809 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.137, allocations: 116.5 kB / 1.021 GB, free: 4.672 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.1371, allocations: 15.94 kB / 1.021 GB, free: 4.656 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.1371, allocations: 11.94 kB / 1.021 GB, free: 4.645 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.297e-05/0.1371, allocations: 0 / 1.021 GB, free: 4.645 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.1371, allocations: 11.98 kB / 1.021 GB, free: 4.633 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1371, allocations: 0 / 1.021 GB, free: 4.633 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 2.726e-05/0.1372, allocations: 119.2 kB / 1.021 GB, free: 4.516 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5e-08/0.1372, allocations: 7.938 kB / 1.021 GB, free: 4.508 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0001247/0.1373, allocations: 16 kB / 1.021 GB, free: 4.492 MB / 0.9792 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.146e-05/0.1374, allocations: 103.2 kB / 1.021 GB, free: 4.383 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 7.857e-05/0.1374, allocations: 51.69 kB / 1.021 GB, free: 4.328 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.1374, allocations: 4 kB / 1.021 GB, free: 4.324 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 2.19e-05/0.1375, allocations: 27.67 kB / 1.021 GB, free: 4.293 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.1376, allocations: 25.52 kB / 1.021 GB, free: 4.27 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004663/0.1381, allocations: 265.8 kB / 1.021 GB, free: 3.98 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.087e-05/0.1381, allocations: 63.91 kB / 1.021 GB, free: 3.898 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 3.594e-05/0.1382, allocations: 8.734 kB / 1.021 GB, free: 3.891 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.1382, allocations: 90.19 kB / 1.021 GB, free: 3.801 MB / 0.9792 GB Notification: Performance of SimCode: time 5.41e-07/0.1382, allocations: 0 / 1.021 GB, free: 3.801 MB / 0.9792 GB Notification: Performance of Templates: time 0.002489/0.1407, allocations: 0.9662 MB / 1.022 GB, free: 2.859 MB / 0.9792 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.885966111905873]