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.001162/0.001162, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001415/0.001415, allocations: 169 kB / 23.49 MB, free: 1.062 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.024/1.024, allocations: 177.1 MB / 203.8 MB, free: 5.617 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.032/2.032, allocations: 429.5 MB / 0.6736 GB, free: 4.043 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.242e-06/1.242e-06, allocations: 0 / 0.8781 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.121e-05, allocations: 7.5 kB / 0.8782 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001604/0.001625, allocations: 1.326 MB / 0.8795 GB, free: 5.355 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.1297/0.1313, allocations: 142.5 MB / 1.019 GB, free: 6.305 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.767e-05/0.1314, allocations: 0 / 1.019 GB, free: 6.305 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 3.214e-05/0.1314, allocations: 3.984 kB / 1.019 GB, free: 6.301 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 7.545e-05/0.1315, allocations: 7.938 kB / 1.019 GB, free: 6.293 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.1319, allocations: 91.44 kB / 1.019 GB, free: 6.203 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 7.769e-05/0.132, allocations: 35.84 kB / 1.019 GB, free: 6.168 MB / 0.9792 GB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.132, allocations: 7.984 kB / 1.019 GB, free: 6.16 MB / 0.9792 GB Notification: Performance of NFEvalConstants.evaluate: time 6.295e-05/0.1321, allocations: 15.98 kB / 1.019 GB, free: 6.145 MB / 0.9792 GB Notification: Performance of NFSimplifyModel.simplify: time 6.049e-05/0.1321, allocations: 19.97 kB / 1.019 GB, free: 6.125 MB / 0.9792 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.1322, allocations: 0 / 1.019 GB, free: 6.125 MB / 0.9792 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.1324, allocations: 75.77 kB / 1.019 GB, free: 6.051 MB / 0.9792 GB Notification: Performance of NFScalarize.scalarize: time 1.503e-05/0.1324, allocations: 11.92 kB / 1.019 GB, free: 6.039 MB / 0.9792 GB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.1324, allocations: 11.98 kB / 1.019 GB, free: 6.027 MB / 0.9792 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.1326, allocations: 71.75 kB / 1.019 GB, free: 5.957 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1326, allocations: 4 kB / 1.019 GB, free: 5.953 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.425e-06/0.1326, allocations: 0 / 1.019 GB, free: 5.953 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.1326, allocations: 0 / 1.019 GB, free: 5.953 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.000383/0.133, allocations: 388.4 kB / 1.019 GB, free: 5.539 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.133, allocations: 12.03 kB / 1.019 GB, free: 5.527 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.1332, allocations: 20.88 kB / 1.019 GB, free: 5.508 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.268e-05/0.1332, allocations: 112.5 kB / 1.019 GB, free: 5.371 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1333, allocations: 4.375 kB / 1.02 GB, free: 5.367 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.1333, allocations: 8.375 kB / 1.02 GB, free: 5.359 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.1334, allocations: 130.7 kB / 1.02 GB, free: 5.207 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1334, allocations: 3.938 kB / 1.02 GB, free: 5.203 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1334, allocations: 0 / 1.02 GB, free: 5.203 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1334, allocations: 7.984 kB / 1.02 GB, free: 5.195 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.485e-05/0.1335, allocations: 11.98 kB / 1.02 GB, free: 5.184 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.1336, allocations: 124.6 kB / 1.02 GB, free: 5.027 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 7.326e-05/0.1337, allocations: 51.05 kB / 1.02 GB, free: 4.965 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.346e-05/0.1337, allocations: 15.69 kB / 1.02 GB, free: 4.945 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.1337, allocations: 4 kB / 1.02 GB, free: 4.941 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.1337, allocations: 41.27 kB / 1.02 GB, free: 4.891 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.1337, allocations: 0 / 1.02 GB, free: 4.891 MB / 0.9792 GB Notification: Performance of matching and sorting (n=11): time 0.000572/0.1343, allocations: 301.7 kB / 1.02 GB, free: 4.559 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.1343, allocations: 55.41 kB / 1.02 GB, free: 4.492 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.1344, allocations: 157.9 kB / 1.02 GB, free: 4.32 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.1344, allocations: 25.7 kB / 1.02 GB, free: 4.289 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 2.835e-05/0.1344, allocations: 126.9 kB / 1.021 GB, free: 4.16 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.1345, allocations: 47.64 kB / 1.021 GB, free: 4.113 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.1345, allocations: 31.38 kB / 1.021 GB, free: 4.074 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1346, allocations: 496.1 kB / 1.021 GB, free: 3.578 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.384e-05/0.1346, allocations: 15.98 kB / 1.021 GB, free: 3.562 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.793e-05/0.1347, allocations: 43.3 kB / 1.021 GB, free: 3.512 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.719e-05/0.1347, allocations: 47.92 kB / 1.021 GB, free: 3.457 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1347, allocations: 0 / 1.021 GB, free: 3.457 MB / 0.9792 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.955e-05/0.1348, allocations: 105.7 kB / 1.021 GB, free: 3.348 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1349, allocations: 4 kB / 1.021 GB, free: 3.344 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1349, allocations: 7.984 kB / 1.021 GB, free: 3.336 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1349, allocations: 0 / 1.021 GB, free: 3.336 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.137e-05/0.135, allocations: 20 kB / 1.021 GB, free: 3.316 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.135, allocations: 0 / 1.021 GB, free: 3.316 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.135, allocations: 0 / 1.021 GB, free: 3.316 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.135, allocations: 8 kB / 1.021 GB, free: 3.309 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 6.51e-05/0.1351, allocations: 168.5 kB / 1.021 GB, free: 3.133 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.1351, allocations: 11.89 kB / 1.021 GB, free: 3.121 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.1351, allocations: 11.97 kB / 1.021 GB, free: 3.109 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1351, allocations: 0 / 1.021 GB, free: 3.109 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1351, allocations: 0 / 1.021 GB, free: 3.109 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1351, allocations: 4 kB / 1.021 GB, free: 3.105 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.05e-05/0.1352, allocations: 124.6 kB / 1.022 GB, free: 2.949 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1352, allocations: 3.984 kB / 1.022 GB, free: 2.945 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.1352, allocations: 19.94 kB / 1.022 GB, free: 2.926 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1352, allocations: 0 / 1.022 GB, free: 2.926 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1353, allocations: 4 kB / 1.022 GB, free: 2.922 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.1353, allocations: 3.938 kB / 1.022 GB, free: 2.918 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1353, allocations: 0 / 1.022 GB, free: 2.918 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.1354, allocations: 140.3 kB / 1.022 GB, free: 2.758 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.1355, allocations: 7.938 kB / 1.022 GB, free: 2.75 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1355, allocations: 4 kB / 1.022 GB, free: 2.746 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.925e-05/0.1355, allocations: 7.984 kB / 1.022 GB, free: 2.738 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.1355, allocations: 3.984 kB / 1.022 GB, free: 2.734 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.1355, allocations: 8 kB / 1.022 GB, free: 2.727 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 3.375e-05/0.1356, allocations: 119.2 kB / 1.022 GB, free: 2.609 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6e-08/0.1356, allocations: 4 kB / 1.022 GB, free: 2.605 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.000127/0.1357, allocations: 16 kB / 1.022 GB, free: 2.59 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 9.007e-05/0.1358, allocations: 99.34 kB / 1.022 GB, free: 2.484 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0001021/0.1359, allocations: 59.53 kB / 1.022 GB, free: 2.422 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1359, allocations: 0 / 1.022 GB, free: 2.422 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 2.857e-05/0.1359, allocations: 35.61 kB / 1.022 GB, free: 2.383 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.1361, allocations: 19.98 kB / 1.022 GB, free: 2.363 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006797/0.1368, allocations: 273.8 kB / 1.022 GB, free: 2.066 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.201e-05/0.1368, allocations: 59.34 kB / 1.022 GB, free: 1.988 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 4.062e-05/0.1368, allocations: 8.734 kB / 1.022 GB, free: 1.98 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.922e-05/0.1369, allocations: 16.5 kB / 1.022 GB, free: 1.961 MB / 0.9792 GB Notification: Performance of SimCode: time 8.32e-07/0.1369, allocations: 0 / 1.022 GB, free: 1.961 MB / 0.9792 GB Notification: Performance of Templates: time 0.002353/0.1392, allocations: 0.854 MB / 1.023 GB, free: 1.137 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.575485836947337]