Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001352/0.001352, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001558/0.001558, allocations: 185 kB / 24.09 MB, free: 416 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.118/1.118, allocations: 177.1 MB / 204.5 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.86/1.86, allocations: 377.9 MB / 0.624 GB, free: 8.43 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 0.812 GB, free: 1.516 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.283e-05, allocations: 2.312 kB / 0.812 GB, free: 1.512 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001765/0.001787, allocations: 1.326 MB / 0.8133 GB, free: 196 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.12/0.1218, allocations: 140.1 MB / 0.9501 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.433e-05/0.1218, allocations: 0 / 0.9501 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.326e-05/0.1218, allocations: 7.922 kB / 0.9501 GB, free: 3.609 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 4.655e-05/0.1219, allocations: 7.938 kB / 0.9501 GB, free: 3.602 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.1222, allocations: 91.5 kB / 0.9502 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.463e-05/0.1223, allocations: 35.84 kB / 0.9502 GB, free: 3.477 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.256e-05/0.1223, allocations: 7.984 kB / 0.9502 GB, free: 3.469 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 6.016e-05/0.1224, allocations: 23.92 kB / 0.9503 GB, free: 3.445 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.746e-05/0.1225, allocations: 11.97 kB / 0.9503 GB, free: 3.434 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.1225, allocations: 0 / 0.9503 GB, free: 3.434 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1227, allocations: 75.77 kB / 0.9503 GB, free: 3.359 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.1227, allocations: 11.98 kB / 0.9503 GB, free: 3.348 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.807e-05/0.1227, allocations: 15.92 kB / 0.9504 GB, free: 3.332 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.1228, allocations: 75.75 kB / 0.9504 GB, free: 3.258 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1228, allocations: 0 / 0.9504 GB, free: 3.258 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.22e-07/0.1228, allocations: 0 / 0.9504 GB, free: 3.258 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.1228, allocations: 0 / 0.9504 GB, free: 3.258 MB / 0.9011 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.0004818/0.1233, allocations: 380.1 kB / 0.9508 GB, free: 2.852 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1234, allocations: 8.031 kB / 0.9508 GB, free: 2.844 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.1235, allocations: 21.17 kB / 0.9508 GB, free: 2.824 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.572e-05/0.1236, allocations: 112.5 kB / 0.9509 GB, free: 2.688 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1236, allocations: 16.36 kB / 0.9509 GB, free: 2.672 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.1236, allocations: 4.375 kB / 0.951 GB, free: 2.668 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.654e-05/0.1237, allocations: 122.7 kB / 0.9511 GB, free: 2.523 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1237, allocations: 0 / 0.9511 GB, free: 2.523 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.1237, allocations: 3.984 kB / 0.9511 GB, free: 2.52 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1237, allocations: 4 kB / 0.9511 GB, free: 2.516 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.254e-05/0.1237, allocations: 11.92 kB / 0.9511 GB, free: 2.504 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.987e-05/0.1238, allocations: 117.2 kB / 0.9512 GB, free: 2.363 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 5.345e-05/0.1239, allocations: 43.05 kB / 0.9512 GB, free: 2.309 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.631e-05/0.1239, allocations: 19.69 kB / 0.9513 GB, free: 2.285 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 6.321e-06/0.1239, allocations: 0 / 0.9513 GB, free: 2.285 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.1239, allocations: 45.38 kB / 0.9513 GB, free: 2.23 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 7.01e-07/0.1239, allocations: 0 / 0.9513 GB, free: 2.23 MB / 0.9011 GB Notification: Performance of matching and sorting (n=11): time 0.0004294/0.1244, allocations: 286.2 kB / 0.9516 GB, free: 1.914 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.1244, allocations: 59.41 kB / 0.9516 GB, free: 1.844 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.687e-05/0.1244, allocations: 149.9 kB / 0.9518 GB, free: 1.68 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 8.787e-06/0.1244, allocations: 25.7 kB / 0.9518 GB, free: 1.648 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.1245, allocations: 134.9 kB / 0.9519 GB, free: 1.512 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.081e-05/0.1245, allocations: 43.58 kB / 0.952 GB, free: 1.469 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.1245, allocations: 43.47 kB / 0.952 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1246, allocations: 496.1 kB / 0.9525 GB, free: 0.9219 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.473e-05/0.1247, allocations: 15.98 kB / 0.9525 GB, free: 0.9062 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.604e-05/0.1247, allocations: 31.36 kB / 0.9525 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.587e-05/0.1247, allocations: 47.3 kB / 0.9526 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.1247, allocations: 0 / 0.9526 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.16e-05/0.1248, allocations: 93.5 kB / 0.9527 GB, free: 0.7148 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.1248, allocations: 6.344 kB / 0.9527 GB, free: 0.7109 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1248, allocations: 3.984 kB / 0.9527 GB, free: 0.707 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1248, allocations: 4 kB / 0.9527 GB, free: 0.7031 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.324e-05/0.1249, allocations: 16 kB / 0.9527 GB, free: 0.6875 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.1249, allocations: 8 kB / 0.9527 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.1249, allocations: 0 / 0.9527 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.1249, allocations: 4 kB / 0.9527 GB, free: 0.6758 MB / 0.9011 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.01e-05/0.125, allocations: 164.5 kB / 0.9529 GB, free: 0.5039 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.125, allocations: 11.94 kB / 0.9529 GB, free: 0.4922 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.125, allocations: 11.97 kB / 0.9529 GB, free: 492 kB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.125, allocations: 0 / 0.9529 GB, free: 492 kB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.125, allocations: 0 / 0.9529 GB, free: 492 kB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.125, allocations: 0 / 0.9529 GB, free: 492 kB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.746e-05/0.1251, allocations: 109.2 kB / 0.953 GB, free: 356 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1251, allocations: 4 kB / 0.953 GB, free: 352 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.1252, allocations: 23.98 kB / 0.953 GB, free: 328 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1252, allocations: 4 kB / 0.953 GB, free: 324 kB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-06/0.1252, allocations: 3.938 kB / 0.953 GB, free: 320 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.1252, allocations: 0 / 0.953 GB, free: 320 kB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1252, allocations: 0 / 0.953 GB, free: 320 kB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.1253, allocations: 132.2 kB / 0.9531 GB, free: 164 kB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 3.053e-05/0.1253, allocations: 15.94 kB / 0.9532 GB, free: 148 kB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.757e-06/0.1253, allocations: 3.938 kB / 0.9532 GB, free: 144 kB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.209e-05/0.1254, allocations: 3.984 kB / 0.9532 GB, free: 140 kB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.1254, allocations: 12 kB / 0.9532 GB, free: 128 kB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.1254, allocations: 7.984 kB / 0.9532 GB, free: 120 kB / 0.9011 GB Notification: Performance of sorting global known variables: time 2.575e-05/0.1254, allocations: 119.2 kB / 0.9533 GB, free: 0 / 0.9011 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1254, allocations: 0 / 0.9533 GB, free: 0 / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001321/0.1256, allocations: 16.05 kB / 0.9533 GB, free: 15.98 MB / 0.9167 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 7.534e-05/0.1256, allocations: 99.25 kB / 0.9534 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 7.385e-05/0.1257, allocations: 57.73 kB / 0.9535 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1257, allocations: 0 / 0.9535 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 2.365e-05/0.1257, allocations: 35.77 kB / 0.9535 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001494/0.1259, allocations: 28.55 kB / 0.9535 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004609/0.1263, allocations: 273.8 kB / 0.9538 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.796e-05/0.1264, allocations: 63.34 kB / 0.9539 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.1264, allocations: 8.734 kB / 0.9539 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.319e-05/0.1265, allocations: 94.17 kB / 0.9539 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of SimCode: time 8.82e-07/0.1265, allocations: 0 / 0.9539 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of Templates: time 0.00276/0.1292, allocations: 0.9291 MB / 0.9549 GB, free: 14.37 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.309084147680551]