Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.000965/0.0009651, allocations: 97.78 kB / 16.02 MB, free: 76 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.001313/0.001313, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.589/2.589, allocations: 437.8 MB / 0.7128 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003512, allocations: 11.94 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.652/0.6524, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00151/0.6539, allocations: 1.007 MB / 1.025 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1563/0.8102, allocations: 143.1 MB / 1.164 GB, free: 15.15 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.582e-05/0.8103, allocations: 0 / 1.164 GB, free: 15.15 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.988e-05/0.8103, allocations: 7.984 kB / 1.164 GB, free: 15.14 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.725e-05/0.8104, allocations: 7.922 kB / 1.164 GB, free: 15.14 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.8108, allocations: 83.62 kB / 1.165 GB, free: 15.05 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.665e-05/0.8109, allocations: 35.86 kB / 1.165 GB, free: 15.02 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.8109, allocations: 0 / 1.165 GB, free: 15.02 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.089e-05/0.811, allocations: 11.98 kB / 1.165 GB, free: 15.01 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.616e-05/0.811, allocations: 19.92 kB / 1.165 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.811, allocations: 0 / 1.165 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.8113, allocations: 79.81 kB / 1.165 GB, free: 14.91 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.659e-05/0.8113, allocations: 8 kB / 1.165 GB, free: 14.9 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.445e-05/0.8114, allocations: 41.62 kB / 1.165 GB, free: 14.86 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.8115, allocations: 41.94 kB / 1.165 GB, free: 14.82 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.8115, allocations: 0 / 1.165 GB, free: 14.82 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.334e-06/0.8116, allocations: 0 / 1.165 GB, free: 14.82 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.884e-06/0.8116, allocations: 0 / 1.165 GB, free: 14.82 MB / 0.92 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.0004199/0.812, allocations: 347.4 kB / 1.165 GB, free: 14.43 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.812, allocations: 15.98 kB / 1.165 GB, free: 14.41 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002142/0.8123, allocations: 12.94 kB / 1.165 GB, free: 14.4 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.8124, allocations: 172.1 kB / 1.165 GB, free: 14.2 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.8124, allocations: 4 kB / 1.165 GB, free: 14.19 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.8124, allocations: 7.938 kB / 1.165 GB, free: 14.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.8126, allocations: 49.69 kB / 1.165 GB, free: 14.13 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.8126, allocations: 0 / 1.165 GB, free: 14.13 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.8126, allocations: 0 / 1.165 GB, free: 14.13 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.8126, allocations: 4 kB / 1.165 GB, free: 14.12 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.236e-05/0.8127, allocations: 19.97 kB / 1.165 GB, free: 14.11 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.8129, allocations: 177.4 kB / 1.166 GB, free: 13.88 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.813, allocations: 50.5 kB / 1.166 GB, free: 13.82 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.21e-05/0.813, allocations: 16.86 kB / 1.166 GB, free: 13.8 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.813, allocations: 0 / 1.166 GB, free: 13.8 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.8131, allocations: 34.55 kB / 1.166 GB, free: 13.76 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 9.11e-07/0.8131, allocations: 0 / 1.166 GB, free: 13.76 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0007717/0.8139, allocations: 370.4 kB / 1.166 GB, free: 13.35 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.8139, allocations: 55.41 kB / 1.166 GB, free: 13.28 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.203e-05/0.814, allocations: 93.86 kB / 1.166 GB, free: 13.18 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.814, allocations: 25.7 kB / 1.166 GB, free: 13.15 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.097e-05/0.814, allocations: 84.14 kB / 1.166 GB, free: 13.06 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.8141, allocations: 43.36 kB / 1.166 GB, free: 13.02 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.8141, allocations: 25.83 kB / 1.166 GB, free: 12.99 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.8143, allocations: 314.8 kB / 1.167 GB, free: 12.67 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.14e-05/0.8143, allocations: 27.92 kB / 1.167 GB, free: 12.64 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.773e-05/0.8144, allocations: 29.7 kB / 1.167 GB, free: 12.61 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.799e-05/0.8144, allocations: 57.72 kB / 1.167 GB, free: 12.55 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.8145, allocations: 0 / 1.167 GB, free: 12.55 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001435/0.8146, allocations: 102.1 kB / 1.167 GB, free: 12.44 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.8146, allocations: 4 kB / 1.167 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.8146, allocations: 4 kB / 1.167 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.8147, allocations: 4 kB / 1.167 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.8148, allocations: 16 kB / 1.167 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.8148, allocations: 4 kB / 1.167 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.403e-05/0.8148, allocations: 4 kB / 1.167 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.8148, allocations: 11.92 kB / 1.167 GB, free: 12.39 MB / 0.92 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.367e-05/0.8149, allocations: 118.3 kB / 1.167 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.815, allocations: 7.906 kB / 1.167 GB, free: 12.26 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.815, allocations: 15.97 kB / 1.167 GB, free: 12.25 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-06/0.815, allocations: 4 kB / 1.167 GB, free: 12.24 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.815, allocations: 0 / 1.167 GB, free: 12.24 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.815, allocations: 0 / 1.167 GB, free: 12.24 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.8152, allocations: 177.6 kB / 1.167 GB, free: 12.02 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.8152, allocations: 0 / 1.167 GB, free: 12.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.8153, allocations: 27.92 kB / 1.167 GB, free: 11.99 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.8153, allocations: 0 / 1.167 GB, free: 11.99 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.8153, allocations: 3.938 kB / 1.167 GB, free: 11.99 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.8153, allocations: 4 kB / 1.167 GB, free: 11.98 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8153, allocations: 0 / 1.167 GB, free: 11.98 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.8155, allocations: 140.9 kB / 1.167 GB, free: 11.83 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.8156, allocations: 89.22 kB / 1.167 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.8157, allocations: 8 kB / 1.167 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.237e-05/0.8158, allocations: 0 / 1.167 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.162e-05/0.8158, allocations: 7.984 kB / 1.167 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.8158, allocations: 8 kB / 1.167 GB, free: 11.7 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.564e-05/0.8158, allocations: 83.22 kB / 1.168 GB, free: 11.62 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8159, allocations: 0 / 1.168 GB, free: 11.62 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001986/0.8161, allocations: 16 kB / 1.168 GB, free: 11.6 MB / 0.92 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.0001057/0.8162, allocations: 103.2 kB / 1.168 GB, free: 11.49 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001336/0.8163, allocations: 55.91 kB / 1.168 GB, free: 11.44 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8163, allocations: 4 kB / 1.168 GB, free: 11.43 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.8164, allocations: 23.94 kB / 1.168 GB, free: 11.41 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.8166, allocations: 14.02 kB / 1.168 GB, free: 11.4 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006288/0.8172, allocations: 416.1 kB / 1.168 GB, free: 10.95 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.8175, allocations: 0.6887 MB / 1.169 GB, free: 10.24 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.8176, allocations: 11.44 kB / 1.169 GB, free: 10.23 MB / 0.92 GB Notification: Performance of SimCode: time 7.02e-07/0.8176, allocations: 0 / 1.169 GB, free: 10.23 MB / 0.92 GB Notification: Performance of Templates: time 0.002348/0.8199, allocations: 0.8158 MB / 1.17 GB, free: 9.414 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches