Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.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.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck") translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 198 kB / 16.79 MB, free: 6.809 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.323/1.323, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.668/2.668, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 64.14 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3141, allocations: 157.4 MB / 1.053 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002366/0.3165, allocations: 1.391 MB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1443/0.4608, allocations: 145.8 MB / 1.196 GB, free: 4.602 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.947e-05/0.4609, allocations: 0 / 1.196 GB, free: 4.602 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.818e-05/0.4609, allocations: 4 kB / 1.196 GB, free: 4.598 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.673e-05/0.4611, allocations: 19.91 kB / 1.196 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007765/0.4618, allocations: 298.8 kB / 1.197 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.489e-05/0.4619, allocations: 83.75 kB / 1.197 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.158e-05/0.462, allocations: 11.92 kB / 1.197 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.696e-05/0.462, allocations: 31.92 kB / 1.197 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.001e-05/0.4621, allocations: 31.89 kB / 1.197 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.4621, allocations: 4 kB / 1.197 GB, free: 4.125 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008067/0.4629, allocations: 494.7 kB / 1.197 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.668e-05/0.463, allocations: 15.97 kB / 1.197 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.463, allocations: 27.86 kB / 1.197 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.4633, allocations: 108.1 kB / 1.198 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4633, allocations: 4 kB / 1.198 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.01e-07/0.4633, allocations: 0 / 1.198 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.4633, allocations: 4 kB / 1.198 GB, free: 3.484 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004348/0.4637, allocations: 387.4 kB / 1.198 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.4638, allocations: 11.97 kB / 1.198 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004077/0.4642, allocations: 36.81 kB / 1.198 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.369e-05/0.4643, allocations: 172.2 kB / 1.198 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.4643, allocations: 11.94 kB / 1.198 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.4643, allocations: 11.91 kB / 1.198 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.4645, allocations: 81.59 kB / 1.198 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.4645, allocations: 0 / 1.198 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.4645, allocations: 7.984 kB / 1.198 GB, free: 2.688 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.4645, allocations: 3.984 kB / 1.198 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-05/0.4646, allocations: 39.97 kB / 1.198 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.4648, allocations: 197.4 kB / 1.198 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.465, allocations: 98.62 kB / 1.199 GB, free: 2.297 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.068e-05/0.4651, allocations: 28.84 kB / 1.199 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002162/0.4653, allocations: 174.2 kB / 1.199 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.4653, allocations: 34.56 kB / 1.199 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.4653, allocations: 4 kB / 1.199 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001306/0.4666, allocations: 0.5449 MB / 1.199 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.4667, allocations: 55.41 kB / 1.199 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.666e-05/0.4668, allocations: 101.8 kB / 1.199 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.4668, allocations: 25.7 kB / 1.2 GB, free: 1.207 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.4668, allocations: 88.64 kB / 1.2 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.4669, allocations: 70.94 kB / 1.2 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.467, allocations: 41.7 kB / 1.2 GB, free: 1 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.4671, allocations: 314.8 kB / 1.2 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.17e-05/0.4671, allocations: 35.97 kB / 1.2 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.311e-05/0.4672, allocations: 72.22 kB / 1.2 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.4674, allocations: 115.4 kB / 1.2 GB, free: 452 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4674, allocations: 4 kB / 1.2 GB, free: 448 kB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000209/0.4676, allocations: 161.4 kB / 1.2 GB, free: 280 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.4676, allocations: 4 kB / 1.2 GB, free: 276 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4676, allocations: 4 kB / 1.2 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.4676, allocations: 0 / 1.2 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.4678, allocations: 35.98 kB / 1.2 GB, free: 236 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.4678, allocations: 3.938 kB / 1.2 GB, free: 232 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.811e-05/0.4679, allocations: 11.94 kB / 1.2 GB, free: 220 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.4679, allocations: 4 kB / 1.2 GB, free: 216 kB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.297e-05/0.468, allocations: 125.8 kB / 1.201 GB, free: 80 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.468, allocations: 11.91 kB / 1.201 GB, free: 68 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.4681, allocations: 16.44 kB / 1.201 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4681, allocations: 0 / 1.201 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4681, allocations: 0 / 1.201 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.4681, allocations: 11.88 kB / 1.201 GB, free: 44 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.4683, allocations: 185.6 kB / 1.201 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4683, allocations: 4 kB / 1.201 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.4685, allocations: 39.92 kB / 1.201 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4685, allocations: 4 kB / 1.201 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.4685, allocations: 4 kB / 1.201 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.4685, allocations: 3.984 kB / 1.201 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4685, allocations: 0 / 1.201 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.4688, allocations: 210 kB / 1.201 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.4689, allocations: 93 kB / 1.201 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.4689, allocations: 4.062 kB / 1.201 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.4691, allocations: 15.98 kB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.508e-05/0.4691, allocations: 15.86 kB / 1.201 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.4691, allocations: 12.25 kB / 1.201 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.003e-05/0.4692, allocations: 75.28 kB / 1.201 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4692, allocations: 0 / 1.201 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002236/0.4694, allocations: 24 kB / 1.201 GB, free: 15.28 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * 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.000119/0.4695, allocations: 107.3 kB / 1.201 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001924/0.4697, allocations: 113.2 kB / 1.201 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4697, allocations: 0 / 1.201 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.216e-05/0.4698, allocations: 55.86 kB / 1.202 GB, free: 15 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.4701, allocations: 18.11 kB / 1.202 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000803/0.4709, allocations: 0.5709 MB / 1.202 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.4711, allocations: 0.7011 MB / 1.203 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.578e-05/0.4712, allocations: 15.44 kB / 1.203 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.4712, allocations: 0 / 1.203 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of Templates: time 0.002513/0.4737, allocations: 1.288 MB / 1.204 GB, free: 12.34 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches