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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001875/0.001876, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 192.8 kB / 16.14 MB, free: 6.723 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.528/1.528, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.064/3.064, allocations: 482.3 MB / 0.7541 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 68.03 kB / 0.923 GB, free: 29.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3892, allocations: 162.2 MB / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002827/0.3921, allocations: 1.332 MB / 1.083 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1898/0.5819, allocations: 144.7 MB / 1.224 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.032e-05/0.5819, allocations: 0 / 1.224 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.582, allocations: 0 / 1.224 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.234e-05/0.5821, allocations: 11.92 kB / 1.224 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.5826, allocations: 79.69 kB / 1.224 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.433e-05/0.5827, allocations: 31.86 kB / 1.224 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.953e-05/0.5827, allocations: 4 kB / 1.224 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.333e-05/0.5828, allocations: 19.92 kB / 1.224 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.5828, allocations: 15.97 kB / 1.224 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.5829, allocations: 4 kB / 1.224 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002953/0.5832, allocations: 67.84 kB / 1.224 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.559e-05/0.5832, allocations: 15.91 kB / 1.224 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.5832, allocations: 8 kB / 1.224 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.5834, allocations: 68.09 kB / 1.224 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.5834, allocations: 0 / 1.224 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.585e-06/0.5835, allocations: 8 kB / 1.224 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.5835, allocations: 0 / 1.224 GB, free: 10.91 MB / 0.9825 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.000487/0.584, allocations: 347.5 kB / 1.225 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.584, allocations: 11.97 kB / 1.225 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.5842, allocations: 16.83 kB / 1.225 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.5844, allocations: 164.4 kB / 1.225 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.5844, allocations: 15.81 kB / 1.225 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.5844, allocations: 8 kB / 1.225 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.5846, allocations: 57.66 kB / 1.225 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.5846, allocations: 0 / 1.225 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.5846, allocations: 0 / 1.225 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.5846, allocations: 0 / 1.225 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.908e-05/0.5847, allocations: 15.98 kB / 1.225 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002028/0.5849, allocations: 165.6 kB / 1.225 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.585, allocations: 50.5 kB / 1.225 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.388e-05/0.5851, allocations: 20.84 kB / 1.225 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.5851, allocations: 4 kB / 1.225 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.5851, allocations: 30.56 kB / 1.225 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.5851, allocations: 0 / 1.225 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0008114/0.5859, allocations: 374.2 kB / 1.226 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.586, allocations: 55.39 kB / 1.226 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.707e-05/0.5861, allocations: 101.9 kB / 1.226 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.5861, allocations: 25.7 kB / 1.226 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.612e-05/0.5861, allocations: 80.14 kB / 1.226 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.5862, allocations: 39.45 kB / 1.226 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/0.5863, allocations: 29.72 kB / 1.226 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5864, allocations: 322.7 kB / 1.226 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.947e-05/0.5865, allocations: 16 kB / 1.226 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.954e-05/0.5865, allocations: 45.83 kB / 1.226 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.5866, allocations: 61.7 kB / 1.226 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5866, allocations: 4 kB / 1.226 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001554/0.5868, allocations: 97.52 kB / 1.226 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.5868, allocations: 4 kB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.5868, allocations: 0.7031 kB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.5869, allocations: 4 kB / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.587, allocations: 19.98 kB / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.587, allocations: 0 / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.002e-05/0.587, allocations: 15.98 kB / 1.226 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.5871, allocations: 0 / 1.226 GB, free: 8.469 MB / 0.9825 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 9.535e-05/0.5872, allocations: 121.7 kB / 1.227 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.5872, allocations: 4 kB / 1.227 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.5872, allocations: 11.97 kB / 1.227 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5872, allocations: 3.984 kB / 1.227 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.5872, allocations: 4 kB / 1.227 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5872, allocations: 0 / 1.227 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.5874, allocations: 169.6 kB / 1.227 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5874, allocations: 7.984 kB / 1.227 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.5876, allocations: 20 kB / 1.227 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5876, allocations: 3.938 kB / 1.227 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.5876, allocations: 0 / 1.227 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5876, allocations: 0 / 1.227 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.5876, allocations: 7.938 kB / 1.227 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.5878, allocations: 136.9 kB / 1.227 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-05/0.5879, allocations: 85.02 kB / 1.227 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.588, allocations: 12.03 kB / 1.227 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.5881, allocations: 4 kB / 1.227 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.593e-05/0.5881, allocations: 4 kB / 1.227 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.5881, allocations: 3.984 kB / 1.227 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.739e-05/0.5882, allocations: 83.28 kB / 1.227 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5882, allocations: 0 / 1.227 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002053/0.5884, allocations: 15.94 kB / 1.227 GB, free: 7.691 MB / 0.9825 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.0001294/0.5885, allocations: 107.3 kB / 1.227 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001444/0.5887, allocations: 59.91 kB / 1.227 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5887, allocations: 0 / 1.227 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.5887, allocations: 31.92 kB / 1.227 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.589, allocations: 10.53 kB / 1.227 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006356/0.5896, allocations: 342.4 kB / 1.228 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.59, allocations: 0.6887 MB / 1.228 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.224e-05/0.5901, allocations: 12.66 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.5901, allocations: 11.44 kB / 1.228 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.5901, allocations: 8 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of Templates: time 0.003282/0.5934, allocations: 0.6035 MB / 1.229 GB, free: 5.77 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches