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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001069/0.001069, allocations: 109.2 kB / 16.37 MB, free: 6.477 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.001097/0.001097, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.487/2.487, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 70.33 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2861, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002184/0.2884, allocations: 1.283 MB / 1.028 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.6425/0.9308, allocations: 147 MB / 1.172 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.699e-05/0.9309, allocations: 0 / 1.172 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.255e-05/0.931, allocations: 3.938 kB / 1.172 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.931, allocations: 3.625 kB / 1.172 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.9315, allocations: 93.81 kB / 1.172 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.66e-05/0.9315, allocations: 40.84 kB / 1.172 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.9316, allocations: 6.344 kB / 1.172 GB, free: 12.15 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.202e-05/0.9316, allocations: 18.25 kB / 1.172 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.9317, allocations: 21.62 kB / 1.172 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.9317, allocations: 2.062 kB / 1.172 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.932, allocations: 71.62 kB / 1.172 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.932, allocations: 5.625 kB / 1.172 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.932, allocations: 21.11 kB / 1.172 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.9322, allocations: 63.12 kB / 1.172 GB, free: 12.07 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.9322, allocations: 5.312 kB / 1.172 GB, free: 12.07 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9322, allocations: 4 kB / 1.172 GB, free: 12.07 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.9322, allocations: 0 / 1.172 GB, free: 12.07 MB / 0.8887 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.0003769/0.9326, allocations: 344.5 kB / 1.172 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.9326, allocations: 9.719 kB / 1.172 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.9328, allocations: 14.38 kB / 1.172 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.933, allocations: 168 kB / 1.172 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.933, allocations: 6.25 kB / 1.172 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.9331, allocations: 11.94 kB / 1.172 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.9332, allocations: 52.11 kB / 1.172 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.9333, allocations: 0 / 1.172 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.9333, allocations: 0 / 1.172 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.9333, allocations: 5.078 kB / 1.172 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.158e-05/0.9334, allocations: 18.31 kB / 1.172 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001984/0.9336, allocations: 169.6 kB / 1.173 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 9.448e-05/0.9337, allocations: 51.78 kB / 1.173 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.118e-05/0.9337, allocations: 22.03 kB / 1.173 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.9338, allocations: 0 / 1.173 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.9338, allocations: 36.16 kB / 1.173 GB, free: 11.15 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.9338, allocations: 3.938 kB / 1.173 GB, free: 11.15 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0007296/0.9345, allocations: 366.1 kB / 1.173 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.9346, allocations: 52.59 kB / 1.173 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/0.9346, allocations: 98.86 kB / 1.173 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.9347, allocations: 30.89 kB / 1.173 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.641e-05/0.9347, allocations: 85.09 kB / 1.173 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.139e-05/0.9347, allocations: 36.42 kB / 1.173 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/0.9348, allocations: 32.84 kB / 1.173 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.688e-05/0.9349, allocations: 321.6 kB / 1.174 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.773e-05/0.9349, allocations: 17.73 kB / 1.174 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.849e-05/0.935, allocations: 40.64 kB / 1.174 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.322e-05/0.9351, allocations: 53.11 kB / 1.174 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.9351, allocations: 0 / 1.174 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001333/0.9352, allocations: 97.75 kB / 1.174 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.9353, allocations: 5.844 kB / 1.174 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.9353, allocations: 0 / 1.174 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.9353, allocations: 2.375 kB / 1.174 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.9354, allocations: 28.41 kB / 1.174 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.9354, allocations: 1.312 kB / 1.174 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.9355, allocations: 7.938 kB / 1.174 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.9355, allocations: 4.125 kB / 1.174 GB, free: 10.05 MB / 0.8887 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.751e-05/0.9356, allocations: 122 kB / 1.174 GB, free: 9.93 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.9356, allocations: 6.312 kB / 1.174 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.9356, allocations: 16.91 kB / 1.174 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9356, allocations: 1.875 kB / 1.174 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.9356, allocations: 0 / 1.174 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.9356, allocations: 2.578 kB / 1.174 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.9358, allocations: 175.9 kB / 1.174 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.9358, allocations: 0 / 1.174 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.9359, allocations: 23.89 kB / 1.174 GB, free: 9.707 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.9359, allocations: 1.031 kB / 1.174 GB, free: 9.707 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.9359, allocations: 4.969 kB / 1.174 GB, free: 9.703 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.936, allocations: 4.188 kB / 1.174 GB, free: 9.703 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.936, allocations: 0 / 1.174 GB, free: 9.703 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.9362, allocations: 137.3 kB / 1.174 GB, free: 9.605 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.9362, allocations: 86.36 kB / 1.175 GB, free: 9.508 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.9363, allocations: 7.25 kB / 1.175 GB, free: 9.504 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-05/0.9363, allocations: 2.656 kB / 1.175 GB, free: 9.504 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.023e-05/0.9364, allocations: 9.266 kB / 1.175 GB, free: 9.5 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.9364, allocations: 3.281 kB / 1.175 GB, free: 9.5 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.512e-05/0.9364, allocations: 78.52 kB / 1.175 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9364, allocations: 0 / 1.175 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002002/0.9366, allocations: 16.97 kB / 1.175 GB, free: 9.422 MB / 0.8887 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.92e-05/0.9367, allocations: 108.4 kB / 1.175 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0001241/0.9369, allocations: 52.47 kB / 1.175 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.9369, allocations: 1.688 kB / 1.175 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 4.085e-05/0.9369, allocations: 29.33 kB / 1.175 GB, free: 9.305 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.9371, allocations: 8.344 kB / 1.175 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005183/0.9376, allocations: 325.2 kB / 1.175 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.9379, allocations: 0.6838 MB / 1.176 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 5.456e-05/0.9379, allocations: 10.55 kB / 1.176 GB, free: 8.336 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.963e-05/0.938, allocations: 12.22 kB / 1.176 GB, free: 8.328 MB / 0.8887 GB Notification: Performance of SimCode: time 2.61e-07/0.938, allocations: 4.812 kB / 1.176 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of Templates: time 0.002531/0.9405, allocations: 0.6373 MB / 1.176 GB, free: 8.25 MB / 0.8887 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 -s gbode -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/jenkins1/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