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.004884/0.004884, allocations: 100.5 kB / 15.73 MB, free: 6.445 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.001677/0.001678, allocations: 197.2 kB / 16.68 MB, free: 6.355 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.621/2.621, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 65.48 kB / 0.9508 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3167, allocations: 140.4 MB / 1.088 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002272/0.3191, allocations: 1.286 MB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1743/0.4933, allocations: 147 MB / 1.233 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.524e-05/0.4934, allocations: 0 / 1.233 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.761e-05/0.4935, allocations: 7.922 kB / 1.233 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.727e-05/0.4936, allocations: 3.938 kB / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/0.4942, allocations: 99.5 kB / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.4943, allocations: 31.91 kB / 1.233 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.145e-05/0.4944, allocations: 3.984 kB / 1.233 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.326e-05/0.4945, allocations: 12 kB / 1.233 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.325e-05/0.4945, allocations: 19.92 kB / 1.233 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.4946, allocations: 0 / 1.233 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004487/0.495, allocations: 79.77 kB / 1.233 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.4951, allocations: 7.984 kB / 1.233 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.673e-05/0.4951, allocations: 23.92 kB / 1.233 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.4953, allocations: 67.81 kB / 1.233 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4953, allocations: 0 / 1.233 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4953, allocations: 0 / 1.233 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.4953, allocations: 0 / 1.233 GB, free: 12.35 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.0005937/0.4959, allocations: 351.5 kB / 1.233 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.496, allocations: 12.02 kB / 1.233 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.4963, allocations: 8.938 kB / 1.233 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.4965, allocations: 172.3 kB / 1.234 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.4965, allocations: 3.938 kB / 1.234 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.4965, allocations: 11.94 kB / 1.234 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.4967, allocations: 49.67 kB / 1.234 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4967, allocations: 0 / 1.234 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.4967, allocations: 0 / 1.234 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.4967, allocations: 0 / 1.234 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.432e-05/0.4968, allocations: 23.92 kB / 1.234 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002739/0.4971, allocations: 169.6 kB / 1.234 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.4972, allocations: 54.56 kB / 1.234 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.753e-05/0.4972, allocations: 8.859 kB / 1.234 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.4973, allocations: 4 kB / 1.234 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.4973, allocations: 34.56 kB / 1.234 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.4973, allocations: 0 / 1.234 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0008781/0.4982, allocations: 380.4 kB / 1.234 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.4983, allocations: 55.34 kB / 1.234 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.892e-05/0.4983, allocations: 93.86 kB / 1.234 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.4984, allocations: 29.7 kB / 1.234 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.369e-05/0.4984, allocations: 80.14 kB / 1.235 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.139e-05/0.4985, allocations: 39.67 kB / 1.235 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.4985, allocations: 25.72 kB / 1.235 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.4987, allocations: 334.8 kB / 1.235 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.486e-05/0.4988, allocations: 19.98 kB / 1.235 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.506e-05/0.4989, allocations: 33.7 kB / 1.235 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.442e-05/0.499, allocations: 57.66 kB / 1.235 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.499, allocations: 4 kB / 1.235 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001484/0.4991, allocations: 93.58 kB / 1.235 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4991, allocations: 4 kB / 1.235 GB, free: 9.965 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.4992, allocations: 0 / 1.235 GB, free: 9.965 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.4992, allocations: 7.984 kB / 1.235 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.4993, allocations: 27.94 kB / 1.235 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.4993, allocations: 0 / 1.235 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.803e-05/0.4994, allocations: 4 kB / 1.235 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.4994, allocations: 0 / 1.235 GB, free: 9.926 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.753e-05/0.4995, allocations: 121.7 kB / 1.235 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.4995, allocations: 15.97 kB / 1.235 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.4996, allocations: 7.969 kB / 1.235 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4996, allocations: 0 / 1.235 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.4996, allocations: 11.94 kB / 1.235 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4996, allocations: 0 / 1.235 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.4998, allocations: 169.6 kB / 1.235 GB, free: 9.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4998, allocations: 0 / 1.235 GB, free: 9.547 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.4999, allocations: 20 kB / 1.235 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4999, allocations: 0 / 1.235 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.4999, allocations: 7.984 kB / 1.235 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4999, allocations: 0 / 1.235 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4999, allocations: 4 kB / 1.235 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.5001, allocations: 136.9 kB / 1.236 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.5002, allocations: 89.08 kB / 1.236 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.5002, allocations: 0 / 1.236 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.204e-05/0.5003, allocations: 4 kB / 1.236 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.5003, allocations: 11.98 kB / 1.236 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.5004, allocations: 0 / 1.236 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.807e-05/0.5004, allocations: 79.28 kB / 1.236 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5004, allocations: 0 / 1.236 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000217/0.5006, allocations: 19.94 kB / 1.236 GB, free: 9.145 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.0001058/0.5007, allocations: 99.34 kB / 1.236 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.5009, allocations: 71.77 kB / 1.236 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5009, allocations: 0 / 1.236 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.8e-05/0.501, allocations: 27.94 kB / 1.236 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.5012, allocations: 9.562 kB / 1.236 GB, free: 8.93 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005913/0.5018, allocations: 321 kB / 1.236 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.5022, allocations: 0.6889 MB / 1.237 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.122e-05/0.5022, allocations: 8.672 kB / 1.237 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.5023, allocations: 15.44 kB / 1.237 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of SimCode: time 4.1e-07/0.5023, allocations: 0 / 1.237 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of Templates: time 0.00339/0.5057, allocations: 0.6648 MB / 1.238 GB, free: 7.191 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