Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7079/0.7093, allocations: 140.4 MB / 0.9496 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002457/0.7118, allocations: 1.275 MB / 0.9508 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1681/0.8799, allocations: 147 MB / 1.094 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.504e-05/0.88, allocations: 0 / 1.094 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.224e-05/0.8801, allocations: 3.938 kB / 1.094 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.569e-05/0.8802, allocations: 3.938 kB / 1.094 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.8807, allocations: 95.55 kB / 1.094 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8e-05/0.8807, allocations: 35.91 kB / 1.095 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.8808, allocations: 0 / 1.095 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.948e-05/0.8809, allocations: 15.88 kB / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.762e-05/0.8809, allocations: 23.91 kB / 1.095 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.8809, allocations: 0 / 1.095 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003017/0.8813, allocations: 79.83 kB / 1.095 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.351e-05/0.8813, allocations: 0 / 1.095 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.596e-05/0.8813, allocations: 23.91 kB / 1.095 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.8815, allocations: 61.86 kB / 1.095 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.8815, allocations: 4 kB / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8815, allocations: 0 / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.8815, allocations: 0 / 1.095 GB, free: 12.68 MB / 0.8575 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.000433/0.882, allocations: 361.1 kB / 1.095 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.882, allocations: 8.031 kB / 1.095 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.8822, allocations: 8.938 kB / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.8823, allocations: 164.4 kB / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.8823, allocations: 11.94 kB / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.8824, allocations: 8 kB / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.8825, allocations: 45.62 kB / 1.095 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.8825, allocations: 4 kB / 1.095 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.8825, allocations: 4 kB / 1.095 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.8826, allocations: 0 / 1.095 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.647e-05/0.8826, allocations: 15.97 kB / 1.095 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.8828, allocations: 177.4 kB / 1.095 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.933e-05/0.8829, allocations: 50.56 kB / 1.096 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/0.8829, allocations: 24.78 kB / 1.096 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.8829, allocations: 0 / 1.096 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.883, allocations: 38.55 kB / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 8.41e-07/0.883, allocations: 0 / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0007089/0.8837, allocations: 366.3 kB / 1.096 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.8837, allocations: 55.41 kB / 1.096 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.935e-05/0.8838, allocations: 93.86 kB / 1.096 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.8838, allocations: 29.7 kB / 1.096 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.022e-05/0.8838, allocations: 84.12 kB / 1.096 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.8839, allocations: 43.36 kB / 1.096 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.343e-05/0.8839, allocations: 29.7 kB / 1.096 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.8841, allocations: 318.8 kB / 1.097 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.481e-05/0.8841, allocations: 20.11 kB / 1.097 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.834e-05/0.8842, allocations: 41.64 kB / 1.097 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.8843, allocations: 58.19 kB / 1.097 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.8843, allocations: 0 / 1.097 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001274/0.8845, allocations: 101.6 kB / 1.097 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.8845, allocations: 9.562 kB / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.8845, allocations: 0 / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.8845, allocations: 0 / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.8846, allocations: 20 kB / 1.097 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.8846, allocations: 7.984 kB / 1.097 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.117e-05/0.8847, allocations: 0 / 1.097 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.8847, allocations: 8 kB / 1.097 GB, free: 10.25 MB / 0.8575 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 8.47e-05/0.8848, allocations: 121.7 kB / 1.097 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.8848, allocations: 11.84 kB / 1.097 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.191e-05/0.8848, allocations: 7.969 kB / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.8848, allocations: 0 / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.8849, allocations: 0 / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.8849, allocations: 0 / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.885, allocations: 177.6 kB / 1.097 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.885, allocations: 4 kB / 1.097 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.8851, allocations: 23.98 kB / 1.097 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.8851, allocations: 4 kB / 1.097 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.8852, allocations: 0 / 1.097 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.8852, allocations: 0 / 1.097 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.8852, allocations: 0 / 1.097 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.8854, allocations: 140.9 kB / 1.097 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.8854, allocations: 93.05 kB / 1.097 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.8855, allocations: 0 / 1.097 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.44e-05/0.8855, allocations: 8 kB / 1.097 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.8856, allocations: 3.984 kB / 1.097 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.8856, allocations: 4 kB / 1.097 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.29e-05/0.8856, allocations: 75.28 kB / 1.097 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8856, allocations: 0 / 1.097 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001975/0.8858, allocations: 23.94 kB / 1.097 GB, free: 9.461 MB / 0.8575 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 0.000105/0.8859, allocations: 103.3 kB / 1.098 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.8861, allocations: 59.91 kB / 1.098 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8861, allocations: 0 / 1.098 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.093e-05/0.8862, allocations: 31.92 kB / 1.098 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.8864, allocations: 8 kB / 1.098 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000555/0.8869, allocations: 321 kB / 1.098 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.8872, allocations: 0.6845 MB / 1.099 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.7e-05/0.8873, allocations: 12.66 kB / 1.099 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.84e-05/0.8873, allocations: 23.38 kB / 1.099 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.8873, allocations: 0 / 1.099 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of Templates: time 0.002736/0.89, allocations: 0.6262 MB / 1.099 GB, free: 7.547 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches