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.00111/0.00111, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001052/0.001052, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.215/2.215, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 67.89 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8397/0.8413, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00217/0.8435, allocations: 1.276 MB / 1.09 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.177/1.021, allocations: 147 MB / 1.233 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.164e-05/1.021, allocations: 4 kB / 1.233 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/1.021, allocations: 9.078 kB / 1.233 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.213e-05/1.021, allocations: 3.984 kB / 1.233 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/1.021, allocations: 90.62 kB / 1.233 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.367e-05/1.021, allocations: 32.48 kB / 1.234 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.778e-05/1.021, allocations: 2.219 kB / 1.234 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/1.022, allocations: 23.12 kB / 1.234 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.303e-05/1.022, allocations: 14.33 kB / 1.234 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/1.022, allocations: 4.844 kB / 1.234 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003225/1.022, allocations: 74.92 kB / 1.234 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/1.022, allocations: 13.08 kB / 1.234 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/1.022, allocations: 15.69 kB / 1.234 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/1.022, allocations: 71.69 kB / 1.234 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/1.022, allocations: 0 / 1.234 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.307e-06/1.022, allocations: 1 kB / 1.234 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.891e-06/1.022, allocations: 3.938 kB / 1.234 GB, free: 6.031 MB / 0.9669 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.0004217/1.023, allocations: 347.8 kB / 1.234 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/1.023, allocations: 17.69 kB / 1.234 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/1.023, allocations: 12.39 kB / 1.234 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/1.023, allocations: 165.6 kB / 1.234 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/1.023, allocations: 5.062 kB / 1.234 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/1.023, allocations: 7.781 kB / 1.234 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/1.023, allocations: 49.7 kB / 1.234 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/1.023, allocations: 0 / 1.234 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/1.023, allocations: 0 / 1.234 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/1.023, allocations: 1.188 kB / 1.234 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.279e-05/1.023, allocations: 21.36 kB / 1.234 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/1.024, allocations: 177 kB / 1.234 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.145e-05/1.024, allocations: 47.72 kB / 1.235 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.391e-05/1.024, allocations: 15.25 kB / 1.235 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/1.024, allocations: 1.062 kB / 1.235 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/1.024, allocations: 35.66 kB / 1.235 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/1.024, allocations: 4 kB / 1.235 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.000784/1.025, allocations: 383 kB / 1.235 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/1.025, allocations: 57.48 kB / 1.235 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.671e-05/1.025, allocations: 90.83 kB / 1.235 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/1.025, allocations: 30.8 kB / 1.235 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.92e-05/1.025, allocations: 81.2 kB / 1.235 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/1.025, allocations: 39.8 kB / 1.235 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.788e-05/1.025, allocations: 26.69 kB / 1.235 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001069/1.025, allocations: 323.8 kB / 1.236 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.643e-05/1.025, allocations: 15.31 kB / 1.236 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/1.025, allocations: 35.48 kB / 1.236 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.37e-05/1.025, allocations: 60.78 kB / 1.236 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/1.025, allocations: 3.938 kB / 1.236 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001411/1.025, allocations: 92.94 kB / 1.236 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/1.025, allocations: 5.188 kB / 1.236 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/1.025, allocations: 0.9375 kB / 1.236 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/1.025, allocations: 1.094 kB / 1.236 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/1.025, allocations: 30.7 kB / 1.236 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/1.026, allocations: 1.031 kB / 1.236 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.406e-05/1.026, allocations: 1.125 kB / 1.236 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/1.026, allocations: 2.281 kB / 1.236 GB, free: 3.938 MB / 0.9669 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.546e-05/1.026, allocations: 121.2 kB / 1.236 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/1.026, allocations: 7.5 kB / 1.236 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.903e-05/1.026, allocations: 15.95 kB / 1.236 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/1.026, allocations: 1 kB / 1.236 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/1.026, allocations: 0.875 kB / 1.236 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.026, allocations: 3.984 kB / 1.236 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/1.026, allocations: 176.5 kB / 1.236 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/1.026, allocations: 0 / 1.236 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/1.026, allocations: 21.5 kB / 1.236 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/1.026, allocations: 5.281 kB / 1.236 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/1.026, allocations: 5.094 kB / 1.236 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.026, allocations: 5.156 kB / 1.236 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.026, allocations: 3.984 kB / 1.236 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001945/1.026, allocations: 127.4 kB / 1.236 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/1.026, allocations: 85.36 kB / 1.236 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/1.026, allocations: 4.031 kB / 1.236 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.512e-05/1.026, allocations: 6.938 kB / 1.236 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/1.026, allocations: 6.969 kB / 1.236 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/1.027, allocations: 10.77 kB / 1.236 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.234e-05/1.027, allocations: 76.75 kB / 1.236 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.884e-06/1.027, allocations: 3.938 kB / 1.236 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002067/1.027, allocations: 24.19 kB / 1.236 GB, free: 3.254 MB / 0.9669 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.0001093/1.027, allocations: 98.88 kB / 1.237 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000163/1.027, allocations: 54.42 kB / 1.237 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.027, allocations: 1.094 kB / 1.237 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.921e-05/1.027, allocations: 26.17 kB / 1.237 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/1.027, allocations: 11.88 kB / 1.237 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006817/1.028, allocations: 354.6 kB / 1.237 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/1.028, allocations: 0.6882 MB / 1.238 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/1.028, allocations: 12.91 kB / 1.238 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of SimCode: time 2e-07/1.028, allocations: 0 / 1.238 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of Templates: time 0.002546/1.031, allocations: 0.8303 MB / 1.239 GB, free: 1.68 MB / 0.9669 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/jenkins1/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