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.001521/0.001525, allocations: 100.1 kB / 15.88 MB, free: 12 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.001794/0.001794, allocations: 198 kB / 16.79 MB, free: 6.809 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.371/1.371, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.64/2.64, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 65.56 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2922, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002254/0.2945, allocations: 1.339 MB / 1.054 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1387/0.4332, allocations: 144.7 MB / 1.195 GB, free: 5.734 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.4333, allocations: 0 / 1.195 GB, free: 5.734 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.104e-05/0.4334, allocations: 4 kB / 1.195 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.4334, allocations: 11.92 kB / 1.195 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.4338, allocations: 75.64 kB / 1.195 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.57e-05/0.4338, allocations: 39.84 kB / 1.195 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.391e-05/0.4339, allocations: 4 kB / 1.195 GB, free: 5.602 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.475e-05/0.4339, allocations: 11.98 kB / 1.195 GB, free: 5.59 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.006e-05/0.434, allocations: 15.92 kB / 1.195 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.434, allocations: 4 kB / 1.196 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.4342, allocations: 75.83 kB / 1.196 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.4342, allocations: 11.98 kB / 1.196 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.4343, allocations: 11.92 kB / 1.196 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.4344, allocations: 52.17 kB / 1.196 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.4344, allocations: 0 / 1.196 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.41e-07/0.4344, allocations: 0 / 1.196 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.4344, allocations: 0 / 1.196 GB, free: 5.422 MB / 0.9512 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.0003553/0.4348, allocations: 351.5 kB / 1.196 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.4348, allocations: 19.97 kB / 1.196 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.435, allocations: 8.938 kB / 1.196 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.529e-05/0.4351, allocations: 168.3 kB / 1.196 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.4351, allocations: 7.938 kB / 1.196 GB, free: 4.793 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.4352, allocations: 11.89 kB / 1.196 GB, free: 4.781 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.4353, allocations: 49.69 kB / 1.196 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.4353, allocations: 0 / 1.196 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.4353, allocations: 0 / 1.196 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.4353, allocations: 4 kB / 1.196 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.484e-05/0.4354, allocations: 15.98 kB / 1.196 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.4355, allocations: 169.6 kB / 1.196 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.271e-05/0.4356, allocations: 54.5 kB / 1.196 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.695e-05/0.4357, allocations: 16.86 kB / 1.196 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.4357, allocations: 0 / 1.196 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.4357, allocations: 30.56 kB / 1.197 GB, free: 4.371 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.4357, allocations: 0 / 1.197 GB, free: 4.371 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006645/0.4364, allocations: 378.2 kB / 1.197 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.4364, allocations: 59.41 kB / 1.197 GB, free: 3.879 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.373e-05/0.4365, allocations: 89.86 kB / 1.197 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.4365, allocations: 25.7 kB / 1.197 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.534e-05/0.4365, allocations: 84.14 kB / 1.197 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.4366, allocations: 39.58 kB / 1.197 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.4366, allocations: 37.64 kB / 1.197 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.4367, allocations: 314.8 kB / 1.197 GB, free: 3.266 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.397e-05/0.4368, allocations: 23.98 kB / 1.198 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.213e-05/0.4368, allocations: 29.7 kB / 1.198 GB, free: 3.207 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.698e-05/0.4369, allocations: 62.25 kB / 1.198 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.4369, allocations: 0 / 1.198 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001244/0.437, allocations: 97.52 kB / 1.198 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.437, allocations: 11.98 kB / 1.198 GB, free: 3.027 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.437, allocations: 4 kB / 1.198 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.4371, allocations: 0 / 1.198 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.4372, allocations: 16 kB / 1.198 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.4372, allocations: 4 kB / 1.198 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.259e-05/0.4372, allocations: 4 kB / 1.198 GB, free: 3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.4372, allocations: 7.938 kB / 1.198 GB, free: 2.992 MB / 0.9512 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.068e-05/0.4373, allocations: 117.8 kB / 1.198 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.4373, allocations: 4 kB / 1.198 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.4374, allocations: 15.97 kB / 1.198 GB, free: 2.848 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.4374, allocations: 4 kB / 1.198 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4374, allocations: 0 / 1.198 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4374, allocations: 0 / 1.198 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.4375, allocations: 173.6 kB / 1.198 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4375, allocations: 4 kB / 1.198 GB, free: 2.621 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.4376, allocations: 23.92 kB / 1.198 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4376, allocations: 0 / 1.198 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.4377, allocations: 7.938 kB / 1.198 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4377, allocations: 0 / 1.198 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4377, allocations: 7.938 kB / 1.198 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.4378, allocations: 137 kB / 1.198 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.4379, allocations: 81.23 kB / 1.198 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.4379, allocations: 8 kB / 1.198 GB, free: 2.324 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.438, allocations: 3.984 kB / 1.198 GB, free: 2.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.75e-05/0.4381, allocations: 7.984 kB / 1.198 GB, free: 2.312 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.4381, allocations: 8 kB / 1.198 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.671e-05/0.4381, allocations: 79.28 kB / 1.198 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4381, allocations: 0 / 1.198 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001904/0.4383, allocations: 19.94 kB / 1.198 GB, free: 2.207 MB / 0.9512 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.926e-05/0.4384, allocations: 107.1 kB / 1.199 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001142/0.4385, allocations: 51.97 kB / 1.199 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4385, allocations: 4 kB / 1.199 GB, free: 2.035 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.451e-05/0.4386, allocations: 23.94 kB / 1.199 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001761/0.4387, allocations: 16.08 kB / 1.199 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005374/0.4393, allocations: 374.8 kB / 1.199 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.4395, allocations: 0.6848 MB / 1.2 GB, free: 0.8867 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.4395, allocations: 11.44 kB / 1.2 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of SimCode: time 3.6e-07/0.4395, allocations: 0 / 1.2 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of Templates: time 0.002067/0.4416, allocations: 0.8204 MB / 1.2 GB, free: 52 kB / 0.9512 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/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