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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.484/2.484, allocations: 390.3 MB / 402.8 MB, free: 6.707 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 184.5 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009495/0.0009498, allocations: 95.55 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.208e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3498, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.892/5.242, allocations: 1.745 GB / 2.964 GB, free: 69.22 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/5.242, allocations: 67.95 kB / 2.964 GB, free: 69.15 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.05841/5.3, allocations: 29.72 MB / 2.993 GB, free: 39.16 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.176e-06/5.301, allocations: 0 / 2.993 GB, free: 39.16 MB / 1.167 GB Notification: Performance of Transformations before backend: time 1.027e-05/5.301, allocations: 0 / 2.993 GB, free: 39.16 MB / 1.167 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.0004539/5.301, allocations: 378.4 kB / 2.993 GB, free: 38.75 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.433e-05/5.301, allocations: 8.031 kB / 2.993 GB, free: 38.74 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004437/5.302, allocations: 36.48 kB / 2.993 GB, free: 38.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/5.302, allocations: 174.9 kB / 2.994 GB, free: 38.49 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/5.302, allocations: 4 kB / 2.994 GB, free: 38.49 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/5.302, allocations: 11.98 kB / 2.994 GB, free: 38.48 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/5.302, allocations: 69.67 kB / 2.994 GB, free: 38.4 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/5.302, allocations: 0 / 2.994 GB, free: 38.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/5.302, allocations: 7.953 kB / 2.994 GB, free: 38.39 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/5.302, allocations: 0 / 2.994 GB, free: 38.39 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.885e-05/5.302, allocations: 43.97 kB / 2.994 GB, free: 38.35 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002482/5.302, allocations: 189.5 kB / 2.994 GB, free: 38.12 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/5.303, allocations: 86.64 kB / 2.994 GB, free: 38.02 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.467e-05/5.303, allocations: 32.84 kB / 2.994 GB, free: 37.99 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/5.303, allocations: 178.2 kB / 2.994 GB, free: 37.78 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/5.303, allocations: 38.55 kB / 2.994 GB, free: 37.73 MB / 1.167 GB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/5.303, allocations: 0 / 2.994 GB, free: 37.73 MB / 1.167 GB Notification: Performance of matching and sorting (n=19): time 0.001362/5.304, allocations: 0.5128 MB / 2.995 GB, free: 37.17 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/5.304, allocations: 51.41 kB / 2.995 GB, free: 37.11 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.903e-05/5.305, allocations: 96.98 kB / 2.995 GB, free: 37 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/5.305, allocations: 29.7 kB / 2.995 GB, free: 36.97 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/5.305, allocations: 84.5 kB / 2.995 GB, free: 36.88 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/5.305, allocations: 63.02 kB / 2.995 GB, free: 36.82 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.736e-06/5.305, allocations: 8 kB / 2.995 GB, free: 36.81 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.115e-05/5.305, allocations: 323 kB / 2.995 GB, free: 36.48 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.229e-05/5.305, allocations: 32 kB / 2.995 GB, free: 36.45 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.69e-05/5.305, allocations: 73.31 kB / 2.995 GB, free: 36.37 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.93e-05/5.305, allocations: 43.97 kB / 2.995 GB, free: 36.33 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/5.305, allocations: 0 / 2.995 GB, free: 36.33 MB / 1.167 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001819/5.305, allocations: 153.4 kB / 2.996 GB, free: 36.17 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/5.305, allocations: 4 kB / 2.996 GB, free: 36.17 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/5.305, allocations: 160 / 2.996 GB, free: 36.17 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/5.305, allocations: 11.98 kB / 2.996 GB, free: 36.16 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/5.305, allocations: 39.98 kB / 2.996 GB, free: 36.12 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/5.305, allocations: 11.88 kB / 2.996 GB, free: 36.11 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/5.305, allocations: 4 kB / 2.996 GB, free: 36.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/5.306, allocations: 8 kB / 2.996 GB, free: 36.09 MB / 1.167 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.276e-05/5.306, allocations: 112.9 kB / 2.996 GB, free: 35.98 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/5.306, allocations: 11.91 kB / 2.996 GB, free: 35.96 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.078e-05/5.306, allocations: 12.22 kB / 2.996 GB, free: 35.95 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/5.306, allocations: 8 kB / 2.996 GB, free: 35.94 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/5.306, allocations: 0 / 2.996 GB, free: 35.94 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/5.306, allocations: 3.953 kB / 2.996 GB, free: 35.94 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/5.306, allocations: 193.6 kB / 2.996 GB, free: 35.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/5.306, allocations: 3.984 kB / 2.996 GB, free: 35.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/5.306, allocations: 39.86 kB / 2.996 GB, free: 35.66 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/5.306, allocations: 4 kB / 2.996 GB, free: 35.65 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/5.306, allocations: 7.938 kB / 2.996 GB, free: 35.64 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/5.306, allocations: 0 / 2.996 GB, free: 35.64 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/5.306, allocations: 0 / 2.996 GB, free: 35.64 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/5.306, allocations: 214.8 kB / 2.996 GB, free: 35.42 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-05/5.307, allocations: 93 kB / 2.996 GB, free: 35.31 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/5.307, allocations: 4 kB / 2.996 GB, free: 35.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/5.307, allocations: 8.062 kB / 2.996 GB, free: 35.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/5.307, allocations: 7.984 kB / 2.996 GB, free: 35.29 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/5.307, allocations: 8 kB / 2.996 GB, free: 35.28 MB / 1.167 GB Notification: Performance of sorting global known variables: time 2.668e-05/5.307, allocations: 83.23 kB / 2.996 GB, free: 35.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.51e-07/5.307, allocations: 4.094 kB / 2.996 GB, free: 35.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003677/5.307, allocations: 63.98 kB / 2.996 GB, free: 35.13 MB / 1.167 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007192/5.308, allocations: 0.5429 MB / 2.997 GB, free: 34.59 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001837/5.308, allocations: 99.86 kB / 2.997 GB, free: 34.49 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/5.308, allocations: 4 kB / 2.997 GB, free: 34.48 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 6.266e-05/5.308, allocations: 49.14 kB / 2.997 GB, free: 34.44 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/5.308, allocations: 18.5 kB / 2.997 GB, free: 34.42 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006272/5.309, allocations: 458.6 kB / 2.998 GB, free: 33.95 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001738/5.309, allocations: 0.7011 MB / 2.998 GB, free: 33.22 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0001197/5.309, allocations: 28.75 kB / 2.998 GB, free: 33.19 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.282e-05/5.309, allocations: 15.44 kB / 2.998 GB, free: 33.18 MB / 1.167 GB Notification: Performance of SimCode: time 4.11e-07/5.309, allocations: 0 / 2.998 GB, free: 33.18 MB / 1.167 GB Notification: Performance of Templates: time 0.01117/5.32, allocations: 9.797 MB / 3.008 GB, free: 23.37 MB / 1.167 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","../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches