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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001119/0.001119, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001223/0.001223, allocations: 196.8 kB / 16.14 MB, free: 6.637 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.894/2.894, allocations: 474.4 MB / 0.7465 GB, free: 3.152 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 70.12 kB / 0.9135 GB, free: 32.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3858, allocations: 160.3 MB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002478/0.3883, allocations: 1.335 MB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1674/0.5557, allocations: 144.7 MB / 1.213 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.469e-05/0.5558, allocations: 3.938 kB / 1.213 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.565e-05/0.5559, allocations: 0 / 1.213 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.558e-05/0.5559, allocations: 3.938 kB / 1.213 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.5563, allocations: 83.69 kB / 1.213 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.824e-05/0.5563, allocations: 27.92 kB / 1.213 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.597e-05/0.5564, allocations: 4 kB / 1.213 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.994e-05/0.5564, allocations: 19.92 kB / 1.213 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.142e-05/0.5565, allocations: 11.92 kB / 1.213 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.5565, allocations: 4 kB / 1.213 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.5568, allocations: 75.81 kB / 1.213 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.588e-05/0.5568, allocations: 4 kB / 1.213 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.5568, allocations: 23.91 kB / 1.213 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.557, allocations: 68.11 kB / 1.213 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.557, allocations: 3.938 kB / 1.213 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.092e-06/0.557, allocations: 0 / 1.213 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.557, allocations: 0 / 1.213 GB, free: 5.637 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.0004368/0.5574, allocations: 353.1 kB / 1.213 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.5575, allocations: 8.031 kB / 1.213 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.5577, allocations: 16.78 kB / 1.213 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.5578, allocations: 164.4 kB / 1.213 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.5578, allocations: 11.94 kB / 1.213 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.5578, allocations: 8 kB / 1.213 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.558, allocations: 49.62 kB / 1.214 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.558, allocations: 0 / 1.214 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.558, allocations: 0 / 1.214 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.558, allocations: 3.984 kB / 1.214 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.883e-05/0.5581, allocations: 15.98 kB / 1.214 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001762/0.5582, allocations: 165.6 kB / 1.214 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.932e-05/0.5583, allocations: 50.56 kB / 1.214 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.895e-05/0.5584, allocations: 12.86 kB / 1.214 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.5584, allocations: 0 / 1.214 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5584, allocations: 46.72 kB / 1.214 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.5584, allocations: 0 / 1.214 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0007501/0.5592, allocations: 374.1 kB / 1.214 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.5592, allocations: 51.41 kB / 1.214 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.947e-05/0.5593, allocations: 93.86 kB / 1.214 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.5593, allocations: 29.7 kB / 1.214 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.696e-05/0.5594, allocations: 84.08 kB / 1.214 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.5594, allocations: 35.45 kB / 1.214 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.5595, allocations: 29.7 kB / 1.214 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.5596, allocations: 322.9 kB / 1.215 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.483e-05/0.5596, allocations: 23.98 kB / 1.215 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.204e-05/0.5597, allocations: 41.69 kB / 1.215 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.771e-05/0.5597, allocations: 53.66 kB / 1.215 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.5597, allocations: 4 kB / 1.215 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001265/0.5599, allocations: 101.5 kB / 1.215 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.5599, allocations: 8 kB / 1.215 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.5599, allocations: 0 / 1.215 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.5599, allocations: 3.984 kB / 1.215 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.56, allocations: 24 kB / 1.215 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5601, allocations: 3.984 kB / 1.215 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.991e-05/0.5601, allocations: 0 / 1.215 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.5601, allocations: 8.703 kB / 1.215 GB, free: 3.207 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 7.591e-05/0.5602, allocations: 125.7 kB / 1.215 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.5602, allocations: 4 kB / 1.215 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.5602, allocations: 11.91 kB / 1.215 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.5603, allocations: 0 / 1.215 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5603, allocations: 0 / 1.215 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5603, allocations: 4 kB / 1.215 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.5604, allocations: 173.6 kB / 1.215 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.5604, allocations: 0 / 1.215 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.5605, allocations: 23.98 kB / 1.215 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.5606, allocations: 0 / 1.215 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.5606, allocations: 4 kB / 1.215 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5606, allocations: 0 / 1.215 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5606, allocations: 0 / 1.215 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.5608, allocations: 148.9 kB / 1.216 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.218e-05/0.5609, allocations: 89.05 kB / 1.216 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.5609, allocations: 0 / 1.216 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.77e-05/0.561, allocations: 8 kB / 1.216 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.561, allocations: 3.984 kB / 1.216 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.5611, allocations: 4 kB / 1.216 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.553e-05/0.5611, allocations: 75.28 kB / 1.216 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5611, allocations: 4 kB / 1.216 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002038/0.5613, allocations: 19.94 kB / 1.216 GB, free: 2.422 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.0001166/0.5614, allocations: 106.7 kB / 1.216 GB, free: 2.309 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.5616, allocations: 59.84 kB / 1.216 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.5616, allocations: 0 / 1.216 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.298e-05/0.5616, allocations: 31.92 kB / 1.216 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.5619, allocations: 8.312 kB / 1.216 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006308/0.5626, allocations: 330.8 kB / 1.216 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.5629, allocations: 0.6888 MB / 1.217 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.5629, allocations: 20.58 kB / 1.217 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.02e-05/0.563, allocations: 11.44 kB / 1.217 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of SimCode: time 4.7e-07/0.563, allocations: 3.938 kB / 1.217 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of Templates: time 0.002868/0.5659, allocations: 0.6059 MB / 1.218 GB, free: 0.5039 MB / 0.9669 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