Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001032/0.001032, allocations: 80.3 kB / 21.47 MB, free: 3.035 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.001441/0.001441, allocations: 170.3 kB / 24.86 MB, free: 9.277 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 0.9645/0.9645, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.872/1.872, allocations: 359 MB / 0.6063 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.127e-05/3.29e-05, allocations: 6.312 kB / 0.7883 GB, free: 12.26 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002845/0.002878, allocations: 1.326 MB / 0.7896 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.1473/0.1502, allocations: 140.1 MB / 0.9264 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.911e-05/0.1502, allocations: 0 / 0.9264 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of NFTyping.typeComponents: time 2.765e-05/0.1503, allocations: 7.984 kB / 0.9264 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of NFTyping.typeBindings: time 5.736e-05/0.1503, allocations: 0 / 0.9264 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.1507, allocations: 95.44 kB / 0.9265 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of NFFlatten.flatten: time 7.842e-05/0.1508, allocations: 35.86 kB / 0.9265 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of NFFlatten.resolveConnections: time 4.315e-05/0.1509, allocations: 7.969 kB / 0.9265 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of NFEvalConstants.evaluate: time 7.968e-05/0.1509, allocations: 19.98 kB / 0.9266 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of NFSimplifyModel.simplify: time 7.178e-05/0.151, allocations: 11.97 kB / 0.9266 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.151, allocations: 4 kB / 0.9266 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.1512, allocations: 75.7 kB / 0.9266 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of NFScalarize.scalarize: time 1.726e-05/0.1512, allocations: 11.98 kB / 0.9267 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of NFVerifyModel.verify: time 1.623e-05/0.1512, allocations: 7.984 kB / 0.9267 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.1514, allocations: 75.69 kB / 0.9267 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1514, allocations: 0 / 0.9267 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1514, allocations: 4 kB / 0.9267 GB, free: 14 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.1514, allocations: 0 / 0.9267 GB, free: 14 MB / 0.8855 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.000454/0.1519, allocations: 388.1 kB / 0.9271 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1519, allocations: 8.031 kB / 0.9271 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.152, allocations: 21.17 kB / 0.9271 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.136e-05/0.1521, allocations: 108.6 kB / 0.9272 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.1521, allocations: 8.375 kB / 0.9273 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.1522, allocations: 8.359 kB / 0.9273 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.1523, allocations: 126.7 kB / 0.9274 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1523, allocations: 4 kB / 0.9274 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.1523, allocations: 4 kB / 0.9274 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1523, allocations: 0 / 0.9274 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.246e-05/0.1523, allocations: 7.984 kB / 0.9274 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.1525, allocations: 113.2 kB / 0.9275 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 7.219e-05/0.1525, allocations: 51.09 kB / 0.9276 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.887e-05/0.1525, allocations: 19.69 kB / 0.9276 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.1526, allocations: 0 / 0.9276 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1526, allocations: 41.33 kB / 0.9276 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.1526, allocations: 0 / 0.9276 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.000517/0.1531, allocations: 290.2 kB / 0.9279 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.1531, allocations: 55.41 kB / 0.9279 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.1532, allocations: 149.9 kB / 0.9281 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.1532, allocations: 29.7 kB / 0.9281 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.1532, allocations: 130.9 kB / 0.9282 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.417e-05/0.1533, allocations: 43.62 kB / 0.9283 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.1533, allocations: 31.36 kB / 0.9283 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1534, allocations: 496.1 kB / 0.9288 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.804e-05/0.1535, allocations: 11.98 kB / 0.9288 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.525e-05/0.1535, allocations: 50.41 kB / 0.9288 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.076e-05/0.1535, allocations: 47.34 kB / 0.9289 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1535, allocations: 4 kB / 0.9289 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.946e-05/0.1536, allocations: 89.5 kB / 0.929 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.1536, allocations: 4 kB / 0.929 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1537, allocations: 0 / 0.929 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.1537, allocations: 4 kB / 0.929 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.573e-05/0.1537, allocations: 23.98 kB / 0.929 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.1537, allocations: 4 kB / 0.929 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.1538, allocations: 0 / 0.929 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1538, allocations: 0 / 0.929 GB, free: 11.43 MB / 0.8855 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 7.536e-05/0.1538, allocations: 168.5 kB / 0.9292 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.1539, allocations: 11.94 kB / 0.9292 GB, free: 11.24 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.1539, allocations: 15.95 kB / 0.9292 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1539, allocations: 3.938 kB / 0.9292 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1539, allocations: 0 / 0.9292 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1539, allocations: 0 / 0.9292 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.457e-05/0.154, allocations: 105.2 kB / 0.9293 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.154, allocations: 0 / 0.9293 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.154, allocations: 27.98 kB / 0.9293 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.154, allocations: 0 / 0.9293 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.154, allocations: 7.938 kB / 0.9293 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1541, allocations: 0 / 0.9293 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1541, allocations: 0 / 0.9293 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.1542, allocations: 132.3 kB / 0.9295 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.1542, allocations: 8 kB / 0.9295 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.025e-05/0.1542, allocations: 7.875 kB / 0.9295 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.512e-05/0.1543, allocations: 0 / 0.9295 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.1543, allocations: 7.984 kB / 0.9295 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.1543, allocations: 8 kB / 0.9295 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.415e-05/0.1543, allocations: 123.2 kB / 0.9296 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.1e-08/0.1543, allocations: 4.094 kB / 0.9296 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001244/0.1544, allocations: 16 kB / 0.9296 GB, free: 10.73 MB / 0.8855 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.407e-05/0.1545, allocations: 103.2 kB / 0.9297 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 9.24e-05/0.1546, allocations: 51.64 kB / 0.9298 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1546, allocations: 0 / 0.9298 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.52e-05/0.1547, allocations: 31.61 kB / 0.9298 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.1548, allocations: 20.39 kB / 0.9298 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005204/0.1554, allocations: 269.9 kB / 0.9301 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.16e-05/0.1554, allocations: 63.34 kB / 0.9301 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.857e-05/0.1554, allocations: 8.734 kB / 0.9302 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.266e-05/0.1555, allocations: 98.12 kB / 0.9302 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of SimCode: time 7.61e-07/0.1555, allocations: 0 / 0.9302 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of Templates: time 0.002569/0.1581, allocations: 0.9543 MB / 0.9312 GB, free: 9.102 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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.2517159739509225]