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.001268/0.001268, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.001644/0.001644, allocations: 161 kB / 24.16 MB, free: 332 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.018/1.018, allocations: 177.2 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.931/1.931, allocations: 377.9 MB / 0.624 GB, free: 8.352 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.442e-06/1.442e-06, allocations: 0 / 0.76 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.261e-05, allocations: 2.312 kB / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002143/0.002166, allocations: 1.376 MB / 0.7614 GB, free: 5.246 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.1529/0.155, allocations: 142.2 MB / 0.9002 GB, free: 6.68 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.833e-05/0.1551, allocations: 0 / 0.9002 GB, free: 6.68 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.668e-05/0.1551, allocations: 0 / 0.9002 GB, free: 6.68 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.1551, allocations: 3.938 kB / 0.9002 GB, free: 6.676 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.1555, allocations: 91.44 kB / 0.9003 GB, free: 6.586 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.594e-05/0.1556, allocations: 39.83 kB / 0.9004 GB, free: 6.547 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.1557, allocations: 12 kB / 0.9004 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 6.811e-05/0.1557, allocations: 15.98 kB / 0.9004 GB, free: 6.52 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.939e-05/0.1558, allocations: 15.97 kB / 0.9004 GB, free: 6.504 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1558, allocations: 0 / 0.9004 GB, free: 6.504 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.156, allocations: 83.69 kB / 0.9005 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.156, allocations: 4 kB / 0.9005 GB, free: 6.418 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.1561, allocations: 15.98 kB / 0.9005 GB, free: 6.402 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.1562, allocations: 71.69 kB / 0.9006 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1562, allocations: 0 / 0.9006 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1562, allocations: 0 / 0.9006 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.1562, allocations: 4 kB / 0.9006 GB, free: 6.328 MB / 0.8542 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.0002923/0.1565, allocations: 256.5 kB / 0.9008 GB, free: 6.055 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.1565, allocations: 12.03 kB / 0.9008 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.1567, allocations: 21.16 kB / 0.9009 GB, free: 6.023 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.245e-05/0.1568, allocations: 109.7 kB / 0.901 GB, free: 5.891 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1568, allocations: 384 / 0.901 GB, free: 5.891 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.1568, allocations: 16.36 kB / 0.901 GB, free: 5.875 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.1569, allocations: 130.7 kB / 0.9011 GB, free: 5.723 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1569, allocations: 3.938 kB / 0.9011 GB, free: 5.719 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1569, allocations: 0 / 0.9011 GB, free: 5.719 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1569, allocations: 4 kB / 0.9011 GB, free: 5.715 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.855e-05/0.157, allocations: 11.98 kB / 0.9011 GB, free: 5.703 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001044/0.1571, allocations: 65.05 kB / 0.9012 GB, free: 5.625 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.351e-05/0.1571, allocations: 42.62 kB / 0.9012 GB, free: 5.574 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.589e-05/0.1572, allocations: 12.84 kB / 0.9012 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-06/0.1572, allocations: 0 / 0.9012 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.1572, allocations: 38.56 kB / 0.9013 GB, free: 5.512 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.1572, allocations: 0 / 0.9013 GB, free: 5.512 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0006638/0.1579, allocations: 317.6 kB / 0.9016 GB, free: 5.168 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.1579, allocations: 55.41 kB / 0.9016 GB, free: 5.102 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.785e-05/0.1579, allocations: 102.7 kB / 0.9017 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.158, allocations: 29.83 kB / 0.9017 GB, free: 4.953 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.484e-05/0.158, allocations: 84.14 kB / 0.9018 GB, free: 4.867 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/0.158, allocations: 39.64 kB / 0.9019 GB, free: 4.828 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.906e-05/0.1581, allocations: 29.7 kB / 0.9019 GB, free: 4.793 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.807e-05/0.1581, allocations: 314.8 kB / 0.9022 GB, free: 4.477 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.423e-05/0.1582, allocations: 11.98 kB / 0.9022 GB, free: 4.465 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.905e-05/0.1582, allocations: 32.64 kB / 0.9022 GB, free: 4.43 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.824e-05/0.1582, allocations: 45.66 kB / 0.9023 GB, free: 4.379 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.1582, allocations: 4 kB / 0.9023 GB, free: 4.375 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 7.885e-05/0.1583, allocations: 73.55 kB / 0.9024 GB, free: 4.297 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.1583, allocations: 4 kB / 0.9024 GB, free: 4.293 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1583, allocations: 4 kB / 0.9024 GB, free: 4.289 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.1583, allocations: 4 kB / 0.9024 GB, free: 4.285 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.354e-05/0.1584, allocations: 23.98 kB / 0.9024 GB, free: 4.262 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.1584, allocations: 4 kB / 0.9024 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/0.1584, allocations: 0 / 0.9024 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.1584, allocations: 8 kB / 0.9024 GB, free: 4.25 MB / 0.8542 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.564e-05/0.1585, allocations: 109.8 kB / 0.9025 GB, free: 4.133 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.1585, allocations: 19.92 kB / 0.9025 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.1585, allocations: 7.969 kB / 0.9025 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1585, allocations: 4 kB / 0.9025 GB, free: 4.098 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1585, allocations: 0 / 0.9025 GB, free: 4.098 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1585, allocations: 0 / 0.9025 GB, free: 4.098 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.779e-05/0.1586, allocations: 81.83 kB / 0.9026 GB, free: 4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1586, allocations: 0 / 0.9026 GB, free: 4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.813e-05/0.1587, allocations: 23.98 kB / 0.9026 GB, free: 3.977 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1587, allocations: 0 / 0.9026 GB, free: 3.977 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.1587, allocations: 0 / 0.9026 GB, free: 3.977 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1587, allocations: 3.938 kB / 0.9026 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1587, allocations: 4 kB / 0.9026 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.1588, allocations: 113 kB / 0.9028 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.1589, allocations: 11.98 kB / 0.9028 GB, free: 3.828 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/0.1589, allocations: 4 kB / 0.9028 GB, free: 3.824 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.227e-05/0.1589, allocations: 3.938 kB / 0.9028 GB, free: 3.82 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.1589, allocations: 7.984 kB / 0.9028 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.1589, allocations: 8 kB / 0.9028 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.832e-06/0.1589, allocations: 4.859 kB / 0.9028 GB, free: 3.797 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.1589, allocations: 0 / 0.9028 GB, free: 3.797 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001117/0.159, allocations: 16 kB / 0.9028 GB, free: 3.781 MB / 0.8542 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.319e-05/0.1591, allocations: 80.42 kB / 0.9029 GB, free: 3.691 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.21e-05/0.1592, allocations: 52.8 kB / 0.9029 GB, free: 3.637 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1592, allocations: 4 kB / 0.9029 GB, free: 3.633 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.1592, allocations: 24.8 kB / 0.903 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1593, allocations: 28.42 kB / 0.903 GB, free: 3.578 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.1599, allocations: 228.2 kB / 0.9032 GB, free: 3.328 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.703e-05/0.1599, allocations: 63.22 kB / 0.9033 GB, free: 3.246 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.711e-05/0.1599, allocations: 12.72 kB / 0.9033 GB, free: 3.234 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.051e-05/0.16, allocations: 71.36 kB / 0.9033 GB, free: 3.164 MB / 0.8542 GB Notification: Performance of SimCode: time 7.41e-07/0.16, allocations: 0 / 0.9033 GB, free: 3.164 MB / 0.8542 GB Notification: Performance of Templates: time 0.002487/0.1625, allocations: 0.9391 MB / 0.9043 GB, free: 2.25 MB / 0.8542 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 -s gbode -gbm=radauIIA3 -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.247617103625089]