Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.007719/0.007719, allocations: 94.98 kB / 15.73 MB, free: 6.039 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.00162/0.00162, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.56/2.56, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 57.72 kB / 0.9508 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3127, allocations: 140.4 MB / 1.088 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002395/0.3151, allocations: 1.284 MB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.169/0.4841, allocations: 147 MB / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.945e-05/0.4842, allocations: 0 / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.185e-05/0.4843, allocations: 3.938 kB / 1.233 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.255e-05/0.4843, allocations: 11.88 kB / 1.233 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.4848, allocations: 99.55 kB / 1.233 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.298e-05/0.4849, allocations: 35.91 kB / 1.233 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.4849, allocations: 0 / 1.233 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.835e-05/0.485, allocations: 15.98 kB / 1.233 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.842e-05/0.4851, allocations: 15.92 kB / 1.233 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.4851, allocations: 4 kB / 1.233 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002673/0.4853, allocations: 87.7 kB / 1.233 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.4854, allocations: 3.984 kB / 1.233 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.215e-05/0.4854, allocations: 19.92 kB / 1.233 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.4856, allocations: 63.77 kB / 1.233 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4856, allocations: 4 kB / 1.233 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.495e-06/0.4856, allocations: 0 / 1.233 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.4856, allocations: 0 / 1.233 GB, free: 12.33 MB / 0.9981 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.0004543/0.4861, allocations: 351.4 kB / 1.233 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4861, allocations: 8.031 kB / 1.233 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.4864, allocations: 16.88 kB / 1.233 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.4865, allocations: 164.3 kB / 1.234 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.4865, allocations: 11.88 kB / 1.234 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.4865, allocations: 12 kB / 1.234 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.4867, allocations: 45.67 kB / 1.234 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.4867, allocations: 4 kB / 1.234 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.4867, allocations: 4 kB / 1.234 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.4867, allocations: 0 / 1.234 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.101e-05/0.4868, allocations: 15.92 kB / 1.234 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.487, allocations: 169.6 kB / 1.234 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.568e-05/0.4871, allocations: 50.56 kB / 1.234 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.853e-05/0.4871, allocations: 20.84 kB / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.4872, allocations: 0 / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.4872, allocations: 38.56 kB / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.4872, allocations: 0 / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0008125/0.488, allocations: 370.4 kB / 1.234 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.4881, allocations: 55.41 kB / 1.234 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.845e-05/0.4882, allocations: 101.8 kB / 1.234 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.4882, allocations: 25.7 kB / 1.234 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.181e-05/0.4882, allocations: 80.14 kB / 1.235 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.4883, allocations: 43.64 kB / 1.235 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.4883, allocations: 29.66 kB / 1.235 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4884, allocations: 318.8 kB / 1.235 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.561e-05/0.4885, allocations: 20.11 kB / 1.235 GB, free: 10.15 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.074e-05/0.4885, allocations: 38.7 kB / 1.235 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.502e-05/0.4886, allocations: 66.17 kB / 1.235 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.4887, allocations: 4 kB / 1.235 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001264/0.4888, allocations: 89.62 kB / 1.235 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.4888, allocations: 8 kB / 1.235 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4888, allocations: 0 / 1.235 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.4889, allocations: 0 / 1.235 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.489, allocations: 27.92 kB / 1.235 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.489, allocations: 7.938 kB / 1.235 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.517e-05/0.489, allocations: 4 kB / 1.235 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-06/0.489, allocations: 4 kB / 1.235 GB, free: 9.891 MB / 0.9981 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.994e-05/0.4892, allocations: 117.8 kB / 1.235 GB, free: 9.766 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.4892, allocations: 4 kB / 1.235 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.4892, allocations: 7.969 kB / 1.235 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4892, allocations: 0 / 1.235 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4892, allocations: 3.938 kB / 1.235 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.4892, allocations: 3.984 kB / 1.235 GB, free: 9.746 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.4894, allocations: 181.6 kB / 1.235 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4894, allocations: 0 / 1.235 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.4895, allocations: 23.98 kB / 1.235 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.4895, allocations: 3.984 kB / 1.235 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.4895, allocations: 0 / 1.235 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4895, allocations: 0 / 1.235 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4896, allocations: 0 / 1.235 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.4898, allocations: 141 kB / 1.236 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.4898, allocations: 93 kB / 1.236 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.4899, allocations: 0 / 1.236 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.77e-05/0.49, allocations: 11.98 kB / 1.236 GB, free: 9.215 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.49, allocations: 0 / 1.236 GB, free: 9.215 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.49, allocations: 4 kB / 1.236 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.49, allocations: 79.28 kB / 1.236 GB, free: 9.133 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.49, allocations: 4 kB / 1.236 GB, free: 9.129 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002032/0.4902, allocations: 15.94 kB / 1.236 GB, free: 9.113 MB / 0.9981 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.0001079/0.4904, allocations: 107.3 kB / 1.236 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.4905, allocations: 55.86 kB / 1.236 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4905, allocations: 4 kB / 1.236 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.965e-05/0.4906, allocations: 31.92 kB / 1.236 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.4908, allocations: 8 kB / 1.236 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.4914, allocations: 316.6 kB / 1.236 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.4917, allocations: 0.6851 MB / 1.237 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.728e-05/0.4917, allocations: 12.66 kB / 1.237 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.4918, allocations: 11.44 kB / 1.237 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.4918, allocations: 4 kB / 1.237 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of Templates: time 0.003215/0.495, allocations: 0.6488 MB / 1.238 GB, free: 7.18 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches