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 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.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.001481/0.001481, allocations: 108 kB / 15.6 MB, free: 132 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.001658/0.001659, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.992/2.992, allocations: 472.6 MB / 0.7451 GB, free: 4.547 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 65.05 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3129, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002355/0.3154, allocations: 1.334 MB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1598/0.4751, allocations: 148.1 MB / 1.214 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.967e-05/0.4752, allocations: 0 / 1.214 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.976e-05/0.4753, allocations: 11.92 kB / 1.214 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.4754, allocations: 11.92 kB / 1.214 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009046/0.4763, allocations: 326.6 kB / 1.214 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.116e-05/0.4764, allocations: 71.77 kB / 1.215 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.571e-05/0.4765, allocations: 0 / 1.215 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.251e-05/0.4765, allocations: 31.92 kB / 1.215 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.544e-05/0.4766, allocations: 31.89 kB / 1.215 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.4767, allocations: 4 kB / 1.215 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007939/0.4775, allocations: 410.8 kB / 1.215 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.361e-05/0.4775, allocations: 11.98 kB / 1.215 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.477e-05/0.4776, allocations: 35.84 kB / 1.215 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.4779, allocations: 147.9 kB / 1.215 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4779, allocations: 8 kB / 1.215 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4779, allocations: 0 / 1.215 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.4779, allocations: 0 / 1.215 GB, free: 3.258 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004973/0.4784, allocations: 399.3 kB / 1.216 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.4785, allocations: 8.031 kB / 1.216 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004115/0.4789, allocations: 32.89 kB / 1.216 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.479, allocations: 172.3 kB / 1.216 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.479, allocations: 7.938 kB / 1.216 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.4791, allocations: 19.91 kB / 1.216 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.4793, allocations: 77.53 kB / 1.216 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.4793, allocations: 0 / 1.216 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.4794, allocations: 4 kB / 1.216 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.4794, allocations: 4 kB / 1.216 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.075e-05/0.4795, allocations: 43.95 kB / 1.216 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.4797, allocations: 189.5 kB / 1.216 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.4799, allocations: 90.55 kB / 1.216 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.651e-05/0.4799, allocations: 36.92 kB / 1.216 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002357/0.4802, allocations: 174.2 kB / 1.216 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.4802, allocations: 34.56 kB / 1.216 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.4802, allocations: 0 / 1.216 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001372/0.4816, allocations: 0.544 MB / 1.217 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.4816, allocations: 55.39 kB / 1.217 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.933e-05/0.4817, allocations: 97.8 kB / 1.217 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.4817, allocations: 41.77 kB / 1.217 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.753e-05/0.4818, allocations: 84.52 kB / 1.217 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.417e-05/0.4819, allocations: 70.94 kB / 1.217 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.564e-05/0.4819, allocations: 37.62 kB / 1.217 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.482, allocations: 322.8 kB / 1.218 GB, free: 468 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.205e-05/0.4821, allocations: 31.98 kB / 1.218 GB, free: 436 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.514e-05/0.4822, allocations: 73.84 kB / 1.218 GB, free: 352 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.4824, allocations: 119.3 kB / 1.218 GB, free: 220 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.4824, allocations: 0 / 1.218 GB, free: 220 kB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002353/0.4826, allocations: 161.6 kB / 1.218 GB, free: 52 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.4827, allocations: 5.562 kB / 1.218 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4827, allocations: 0 / 1.218 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4827, allocations: 4 kB / 1.218 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.4829, allocations: 39.92 kB / 1.218 GB, free: 4 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.4829, allocations: 4 kB / 1.218 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.483, allocations: 12.02 kB / 1.218 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.483, allocations: 8 kB / 1.218 GB, free: 15.98 MB / 0.9825 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 9.32e-05/0.4831, allocations: 123.5 kB / 1.218 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.4831, allocations: 4 kB / 1.218 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.4832, allocations: 24.36 kB / 1.218 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.4832, allocations: 4 kB / 1.218 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.4832, allocations: 0 / 1.218 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4832, allocations: 3.938 kB / 1.218 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.4834, allocations: 193.5 kB / 1.218 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4834, allocations: 4 kB / 1.218 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.4836, allocations: 39.98 kB / 1.218 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.4836, allocations: 0 / 1.218 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.4836, allocations: 0 / 1.218 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.4836, allocations: 11.88 kB / 1.218 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4836, allocations: 0 / 1.218 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.484, allocations: 218.6 kB / 1.219 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.283e-05/0.4841, allocations: 85.09 kB / 1.219 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.4841, allocations: 8.062 kB / 1.219 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.4842, allocations: 12 kB / 1.219 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.4843, allocations: 15.91 kB / 1.219 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.4843, allocations: 4 kB / 1.219 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.807e-05/0.4843, allocations: 83.28 kB / 1.219 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.4843, allocations: 0 / 1.219 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000234/0.4846, allocations: 24 kB / 1.219 GB, free: 15.05 MB / 0.9825 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.0001509/0.4847, allocations: 115.8 kB / 1.219 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.4849, allocations: 108.2 kB / 1.219 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.485, allocations: 0 / 1.219 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.7e-05/0.485, allocations: 63.8 kB / 1.219 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.4853, allocations: 9.25 kB / 1.219 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008542/0.4862, allocations: 0.5126 MB / 1.22 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.4865, allocations: 0.7008 MB / 1.22 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001361/0.4866, allocations: 24.64 kB / 1.22 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.4867, allocations: 15.44 kB / 1.22 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.4867, allocations: 0 / 1.22 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of Templates: time 0.00372/0.4904, allocations: 1.105 MB / 1.221 GB, free: 12.34 MB / 0.9825 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches