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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00161/0.00161, allocations: 106.7 kB / 16.41 MB, free: 6.027 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.001795/0.001795, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.611/2.611, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 55.91 kB / 1.055 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7846/0.7862, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002753/0.789, allocations: 1.269 MB / 1.21 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1621/0.9511, allocations: 147 MB / 1.353 GB, free: 8.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.903e-05/0.9512, allocations: 0 / 1.353 GB, free: 8.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/0.9513, allocations: 4 kB / 1.353 GB, free: 8.816 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.062e-05/0.9513, allocations: 11.92 kB / 1.353 GB, free: 8.805 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.9518, allocations: 91.55 kB / 1.353 GB, free: 8.715 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 8.551e-05/0.9519, allocations: 27.92 kB / 1.353 GB, free: 8.688 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.952, allocations: 4 kB / 1.353 GB, free: 8.684 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.711e-05/0.952, allocations: 19.92 kB / 1.353 GB, free: 8.664 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.288e-05/0.9521, allocations: 15.92 kB / 1.353 GB, free: 8.648 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.9521, allocations: 4 kB / 1.353 GB, free: 8.645 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.9524, allocations: 83.75 kB / 1.353 GB, free: 8.562 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.9524, allocations: 8 kB / 1.353 GB, free: 8.555 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.9525, allocations: 15.92 kB / 1.353 GB, free: 8.539 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.9527, allocations: 71.67 kB / 1.354 GB, free: 8.473 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.9527, allocations: 0 / 1.354 GB, free: 8.473 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.694e-06/0.9527, allocations: 0 / 1.354 GB, free: 8.473 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.9527, allocations: 0 / 1.354 GB, free: 8.473 MB / 1.076 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.0004102/0.9531, allocations: 345.4 kB / 1.354 GB, free: 8.09 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.9532, allocations: 12.03 kB / 1.354 GB, free: 8.078 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.9534, allocations: 20.83 kB / 1.354 GB, free: 8.059 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.9535, allocations: 164.1 kB / 1.354 GB, free: 7.859 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.9535, allocations: 0 / 1.354 GB, free: 7.859 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.9535, allocations: 8 kB / 1.354 GB, free: 7.852 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.9537, allocations: 53.61 kB / 1.354 GB, free: 7.793 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.9537, allocations: 0 / 1.354 GB, free: 7.793 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.9537, allocations: 4 kB / 1.354 GB, free: 7.789 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.9537, allocations: 4 kB / 1.354 GB, free: 7.785 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.9538, allocations: 15.98 kB / 1.354 GB, free: 7.77 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.9539, allocations: 173.5 kB / 1.354 GB, free: 7.551 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 8.807e-05/0.954, allocations: 50.55 kB / 1.354 GB, free: 7.492 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.979e-05/0.9541, allocations: 16.84 kB / 1.354 GB, free: 7.473 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.9541, allocations: 0 / 1.354 GB, free: 7.473 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.9541, allocations: 38.5 kB / 1.354 GB, free: 7.426 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.9541, allocations: 3.938 kB / 1.354 GB, free: 7.422 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0007573/0.9549, allocations: 378.5 kB / 1.355 GB, free: 7 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.9549, allocations: 55.41 kB / 1.355 GB, free: 6.934 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.681e-05/0.955, allocations: 93.84 kB / 1.355 GB, free: 6.832 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.955, allocations: 29.7 kB / 1.355 GB, free: 6.797 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.902e-05/0.9551, allocations: 84.14 kB / 1.355 GB, free: 6.711 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.9551, allocations: 35.41 kB / 1.355 GB, free: 6.676 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.9552, allocations: 33.83 kB / 1.355 GB, free: 6.637 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 9.8e-05/0.9553, allocations: 318.8 kB / 1.355 GB, free: 6.316 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.752e-05/0.9553, allocations: 23.98 kB / 1.355 GB, free: 6.293 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-05/0.9554, allocations: 33.7 kB / 1.355 GB, free: 6.254 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.351e-05/0.9554, allocations: 65.62 kB / 1.355 GB, free: 6.184 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.9555, allocations: 0 / 1.355 GB, free: 6.184 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001366/0.9556, allocations: 93.53 kB / 1.356 GB, free: 6.086 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.9556, allocations: 9.875 kB / 1.356 GB, free: 6.078 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.9556, allocations: 4 kB / 1.356 GB, free: 6.074 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.9556, allocations: 0 / 1.356 GB, free: 6.074 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.9558, allocations: 23.98 kB / 1.356 GB, free: 6.051 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.9558, allocations: 4 kB / 1.356 GB, free: 6.047 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.407e-05/0.9558, allocations: 3.938 kB / 1.356 GB, free: 6.043 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.9558, allocations: 7.938 kB / 1.356 GB, free: 6.035 MB / 1.076 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.491e-05/0.9559, allocations: 117.8 kB / 1.356 GB, free: 5.91 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.9559, allocations: 0 / 1.356 GB, free: 5.91 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.22e-05/0.956, allocations: 15.97 kB / 1.356 GB, free: 5.895 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.956, allocations: 4 kB / 1.356 GB, free: 5.891 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.956, allocations: 0 / 1.356 GB, free: 5.891 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.956, allocations: 0 / 1.356 GB, free: 5.891 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.9561, allocations: 177.6 kB / 1.356 GB, free: 5.668 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9561, allocations: 0 / 1.356 GB, free: 5.668 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.9563, allocations: 19.98 kB / 1.356 GB, free: 5.648 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.9563, allocations: 0 / 1.356 GB, free: 5.648 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.9563, allocations: 8 kB / 1.356 GB, free: 5.641 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.9563, allocations: 0 / 1.356 GB, free: 5.641 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.9563, allocations: 0 / 1.356 GB, free: 5.641 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.9565, allocations: 140.9 kB / 1.356 GB, free: 5.484 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.942e-05/0.9566, allocations: 89.05 kB / 1.356 GB, free: 5.379 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.9566, allocations: 8 kB / 1.356 GB, free: 5.371 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.9567, allocations: 3.984 kB / 1.356 GB, free: 5.367 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.281e-05/0.9567, allocations: 8 kB / 1.356 GB, free: 5.359 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.9568, allocations: 4 kB / 1.356 GB, free: 5.355 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.18e-05/0.9568, allocations: 83.22 kB / 1.356 GB, free: 5.273 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9568, allocations: 0 / 1.356 GB, free: 5.273 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002007/0.957, allocations: 16 kB / 1.356 GB, free: 5.258 MB / 1.076 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.0001071/0.9571, allocations: 103.2 kB / 1.356 GB, free: 5.145 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001286/0.9572, allocations: 56.39 kB / 1.356 GB, free: 5.09 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9573, allocations: 0 / 1.356 GB, free: 5.09 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.9573, allocations: 27.92 kB / 1.356 GB, free: 5.062 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.9575, allocations: 11.94 kB / 1.356 GB, free: 5.051 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005375/0.9581, allocations: 346.9 kB / 1.357 GB, free: 4.68 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.9583, allocations: 0.6923 MB / 1.357 GB, free: 3.961 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.9584, allocations: 11.44 kB / 1.358 GB, free: 3.949 MB / 1.076 GB Notification: Performance of SimCode: time 2.81e-07/0.9584, allocations: 0 / 1.358 GB, free: 3.949 MB / 1.076 GB Notification: Performance of Templates: time 0.002161/0.9605, allocations: 0.8352 MB / 1.358 GB, free: 3.117 MB / 1.076 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