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.006998/0.006998, allocations: 100.9 kB / 15.73 MB, free: 6.496 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.001485/0.001485, allocations: 196.5 kB / 16.68 MB, free: 6.375 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.412/1.412, 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.595/2.595, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 66.02 kB / 0.9508 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3228, allocations: 140.4 MB / 1.088 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.003061/0.3259, allocations: 1.275 MB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.171/0.4968, allocations: 147 MB / 1.233 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.881e-05/0.4969, allocations: 7.938 kB / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.504e-05/0.497, allocations: 3.984 kB / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.52e-05/0.4971, allocations: 11.88 kB / 1.233 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005134/0.4976, allocations: 91.56 kB / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.459e-05/0.4977, allocations: 31.91 kB / 1.233 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.518e-05/0.4977, allocations: 7.984 kB / 1.233 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.7e-05/0.4978, allocations: 8 kB / 1.233 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.647e-05/0.4979, allocations: 19.91 kB / 1.233 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.4979, allocations: 4 kB / 1.233 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002796/0.4982, allocations: 83.77 kB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.4982, allocations: 11.98 kB / 1.233 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.4982, allocations: 15.94 kB / 1.233 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.4984, allocations: 67.81 kB / 1.233 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4984, allocations: 0 / 1.233 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.714e-06/0.4984, allocations: 0 / 1.233 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.4984, allocations: 0 / 1.233 GB, free: 12.34 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.0004308/0.4989, allocations: 351.5 kB / 1.233 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.4989, allocations: 12.03 kB / 1.233 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.4991, allocations: 12.94 kB / 1.233 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.4993, allocations: 164.3 kB / 1.234 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.4993, allocations: 15.86 kB / 1.234 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.4993, allocations: 0 / 1.234 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.4995, allocations: 53.67 kB / 1.234 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.4995, allocations: 0 / 1.234 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.4995, allocations: 4 kB / 1.234 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4995, allocations: 3.938 kB / 1.234 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.329e-05/0.4996, allocations: 23.92 kB / 1.234 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001816/0.4998, allocations: 173.6 kB / 1.234 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.4999, allocations: 46.56 kB / 1.234 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.4999, allocations: 12.86 kB / 1.234 GB, free: 11.33 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.4999, allocations: 0 / 1.234 GB, free: 11.33 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.5, allocations: 38.56 kB / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.5, allocations: 0 / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0007548/0.5007, allocations: 386.2 kB / 1.234 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.5008, allocations: 51.41 kB / 1.234 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.713e-05/0.5009, allocations: 89.86 kB / 1.234 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.5009, allocations: 33.7 kB / 1.234 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.086e-05/0.5009, allocations: 80.14 kB / 1.235 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/0.501, allocations: 35.58 kB / 1.235 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.501, allocations: 37.64 kB / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5012, allocations: 318.8 kB / 1.235 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.862e-05/0.5012, allocations: 19.98 kB / 1.235 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.435e-05/0.5013, allocations: 37.7 kB / 1.235 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.23e-05/0.5013, allocations: 53.66 kB / 1.235 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.5014, allocations: 0 / 1.235 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001327/0.5015, allocations: 93.58 kB / 1.235 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.5015, allocations: 15.98 kB / 1.235 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.5015, allocations: 0 / 1.235 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.5016, allocations: 3.938 kB / 1.235 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.5017, allocations: 24 kB / 1.235 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.5017, allocations: 0.7031 kB / 1.235 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.246e-05/0.5017, allocations: 0 / 1.235 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.5017, allocations: 4 kB / 1.235 GB, free: 9.91 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 8.794e-05/0.5018, allocations: 125.7 kB / 1.235 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.568e-05/0.5018, allocations: 4 kB / 1.235 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.882e-05/0.5019, allocations: 15.97 kB / 1.235 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.5019, allocations: 3.938 kB / 1.235 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.5019, allocations: 0 / 1.235 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.5019, allocations: 4 kB / 1.235 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.502, allocations: 177.6 kB / 1.235 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.5021, allocations: 0 / 1.235 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.5022, allocations: 19.98 kB / 1.235 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.5022, allocations: 4 kB / 1.235 GB, free: 9.504 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.5022, allocations: 4 kB / 1.235 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5022, allocations: 0 / 1.235 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5022, allocations: 4 kB / 1.235 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.5024, allocations: 136.8 kB / 1.236 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.5025, allocations: 93.08 kB / 1.236 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.5025, allocations: 0 / 1.236 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.152e-05/0.5026, allocations: 4 kB / 1.236 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.5026, allocations: 7.984 kB / 1.236 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.5026, allocations: 4 kB / 1.236 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.34e-05/0.5027, allocations: 79.28 kB / 1.236 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5027, allocations: 0 / 1.236 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001975/0.5029, allocations: 19.94 kB / 1.236 GB, free: 9.121 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.0001034/0.503, allocations: 99.25 kB / 1.236 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001483/0.5032, allocations: 64 kB / 1.236 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5032, allocations: 0 / 1.236 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.851e-05/0.5032, allocations: 27.94 kB / 1.236 GB, free: 8.922 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.5035, allocations: 12.23 kB / 1.236 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.504, allocations: 320.9 kB / 1.236 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.5043, allocations: 0.6851 MB / 1.237 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.164e-05/0.5043, allocations: 12.66 kB / 1.237 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.5043, allocations: 11.44 kB / 1.237 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.5044, allocations: 0 / 1.237 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of Templates: time 0.002656/0.507, allocations: 0.6497 MB / 1.238 GB, free: 7.188 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