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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001039/0.001039, allocations: 90.91 kB / 15.36 MB, free: 0.7344 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.00977/0.00977, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.435/1.435, allocations: 223.3 MB / 240.3 MB, free: 5.305 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.837/2.837, allocations: 443.3 MB / 0.7175 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003864, allocations: 8.906 kB / 0.8796 GB, free: 41.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3233, allocations: 155.2 MB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001441/0.3248, allocations: 0.9944 MB / 1.032 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1611/0.4859, allocations: 143.2 MB / 1.172 GB, free: 3.625 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.045e-05/0.486, allocations: 0 / 1.172 GB, free: 3.625 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.486, allocations: 4 kB / 1.172 GB, free: 3.621 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.048e-05/0.4861, allocations: 3.938 kB / 1.172 GB, free: 3.617 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004709/0.4866, allocations: 83.69 kB / 1.172 GB, free: 3.535 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.405e-05/0.4867, allocations: 35.84 kB / 1.172 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.898e-05/0.4867, allocations: 0 / 1.172 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.621e-05/0.4868, allocations: 12 kB / 1.172 GB, free: 3.488 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.4868, allocations: 15.91 kB / 1.172 GB, free: 3.473 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.4869, allocations: 8 kB / 1.172 GB, free: 3.465 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003014/0.4872, allocations: 75.77 kB / 1.172 GB, free: 3.391 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.4872, allocations: 11.98 kB / 1.172 GB, free: 3.379 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.4872, allocations: 41.62 kB / 1.172 GB, free: 3.332 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.4874, allocations: 64.11 kB / 1.172 GB, free: 3.27 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4874, allocations: 0 / 1.172 GB, free: 3.27 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.884e-06/0.4874, allocations: 4 kB / 1.172 GB, free: 3.266 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.4874, allocations: 0 / 1.172 GB, free: 3.266 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.0004172/0.4879, allocations: 343.5 kB / 1.173 GB, free: 2.883 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.4879, allocations: 15.97 kB / 1.173 GB, free: 2.867 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.4881, allocations: 8.938 kB / 1.173 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.4883, allocations: 160.4 kB / 1.173 GB, free: 2.664 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.4883, allocations: 7.938 kB / 1.173 GB, free: 2.656 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.4883, allocations: 11.91 kB / 1.173 GB, free: 2.645 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.4885, allocations: 57.61 kB / 1.173 GB, free: 2.582 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.4885, allocations: 4 kB / 1.173 GB, free: 2.578 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.4885, allocations: 0 / 1.173 GB, free: 2.578 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.4885, allocations: 4 kB / 1.173 GB, free: 2.574 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.015e-05/0.4886, allocations: 15.98 kB / 1.173 GB, free: 2.559 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002189/0.4888, allocations: 173.6 kB / 1.173 GB, free: 2.34 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.614e-05/0.4889, allocations: 54.5 kB / 1.173 GB, free: 2.277 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.204e-05/0.4889, allocations: 8.859 kB / 1.173 GB, free: 2.266 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.489, allocations: 0 / 1.173 GB, free: 2.266 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.489, allocations: 42.56 kB / 1.173 GB, free: 2.215 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.489, allocations: 0 / 1.173 GB, free: 2.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0007692/0.4898, allocations: 381.2 kB / 1.173 GB, free: 1.793 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.4898, allocations: 51.41 kB / 1.173 GB, free: 1.73 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.633e-05/0.4899, allocations: 93.86 kB / 1.174 GB, free: 1.629 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.4899, allocations: 29.7 kB / 1.174 GB, free: 1.594 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.208e-05/0.49, allocations: 84.27 kB / 1.174 GB, free: 1.508 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.49, allocations: 35.45 kB / 1.174 GB, free: 1.473 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.49, allocations: 17.72 kB / 1.174 GB, free: 1.449 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.4901, allocations: 326.8 kB / 1.174 GB, free: 1.121 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.648e-05/0.4902, allocations: 15.98 kB / 1.174 GB, free: 1.105 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.794e-05/0.4903, allocations: 41.64 kB / 1.174 GB, free: 1.059 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.688e-05/0.4903, allocations: 54.25 kB / 1.174 GB, free: 1 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.4904, allocations: 4 kB / 1.174 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001369/0.4905, allocations: 97.61 kB / 1.174 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.4905, allocations: 8 kB / 1.174 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4905, allocations: 0 / 1.174 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.4906, allocations: 0 / 1.174 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.4907, allocations: 23.98 kB / 1.174 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.4907, allocations: 0 / 1.174 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.363e-05/0.4907, allocations: 7.922 kB / 1.174 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.4907, allocations: 4 kB / 1.174 GB, free: 0.8516 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 9.282e-05/0.4908, allocations: 135.2 kB / 1.174 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.4909, allocations: 7.906 kB / 1.174 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.4909, allocations: 11.95 kB / 1.174 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.4909, allocations: 0 / 1.174 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4909, allocations: 0 / 1.174 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.4909, allocations: 0 / 1.174 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.4911, allocations: 177.6 kB / 1.175 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4911, allocations: 0 / 1.175 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.4912, allocations: 20 kB / 1.175 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.4912, allocations: 4 kB / 1.175 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.4912, allocations: 0 / 1.175 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.4912, allocations: 7.984 kB / 1.175 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4912, allocations: 0 / 1.175 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.4915, allocations: 140.8 kB / 1.175 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.009e-05/0.4915, allocations: 85.14 kB / 1.175 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.4916, allocations: 0 / 1.175 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.4917, allocations: 8 kB / 1.175 GB, free: 176 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.4917, allocations: 3.984 kB / 1.175 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.4917, allocations: 8 kB / 1.175 GB, free: 164 kB / 0.92 GB Notification: Performance of sorting global known variables: time 3.175e-05/0.4917, allocations: 79.28 kB / 1.175 GB, free: 84 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4917, allocations: 0 / 1.175 GB, free: 84 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002055/0.4919, allocations: 23.94 kB / 1.175 GB, free: 60 kB / 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.0001165/0.4921, allocations: 99.25 kB / 1.175 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001336/0.4922, allocations: 55.86 kB / 1.175 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4922, allocations: 0 / 1.175 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.4923, allocations: 27.92 kB / 1.175 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.4925, allocations: 12.09 kB / 1.175 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006074/0.4931, allocations: 386.4 kB / 1.176 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.4933, allocations: 0.6887 MB / 1.176 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.355e-05/0.4934, allocations: 12.66 kB / 1.176 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.157e-05/0.4935, allocations: 11.44 kB / 1.176 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of SimCode: time 6.02e-07/0.4935, allocations: 3.938 kB / 1.176 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of Templates: time 0.002851/0.4963, allocations: 0.608 MB / 1.177 GB, free: 14.1 MB / 0.9356 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/jenkins/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