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.001014/0.001014, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001016/0.001016, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.55/2.55, allocations: 436.5 MB / 0.7104 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.0003761, allocations: 8 kB / 0.8707 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.603/0.6034, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001639/0.6051, allocations: 1.027 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1328/0.7379, allocations: 125.2 MB / 1.144 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.983e-05/0.738, allocations: 0 / 1.144 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.734e-05/0.7381, allocations: 0 / 1.144 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.209e-05/0.7382, allocations: 11.97 kB / 1.144 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000782/0.739, allocations: 239.2 kB / 1.144 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.742e-05/0.7391, allocations: 39.92 kB / 1.144 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.456e-05/0.7391, allocations: 4 kB / 1.144 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.871e-05/0.7392, allocations: 27.91 kB / 1.144 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.597e-05/0.7393, allocations: 31.91 kB / 1.144 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.7393, allocations: 4 kB / 1.144 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000649/0.7399, allocations: 287.4 kB / 1.145 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.816e-05/0.74, allocations: 15.97 kB / 1.145 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.74, allocations: 37.7 kB / 1.145 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.7403, allocations: 89.8 kB / 1.145 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.7403, allocations: 3.938 kB / 1.145 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.432e-06/0.7403, allocations: 0 / 1.145 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.7403, allocations: 0 / 1.145 GB, free: 1.773 MB / 0.8887 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.0004006/0.7407, allocations: 379.1 kB / 1.145 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.7407, allocations: 15.98 kB / 1.145 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000405/0.7412, allocations: 43.84 kB / 1.145 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.7413, allocations: 171 kB / 1.145 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.7413, allocations: 8 kB / 1.145 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.7413, allocations: 8 kB / 1.145 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.7415, allocations: 77.64 kB / 1.145 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.7415, allocations: 0 / 1.145 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.7415, allocations: 4 kB / 1.145 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.7416, allocations: 0 / 1.145 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.744e-05/0.7416, allocations: 51.89 kB / 1.146 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.7419, allocations: 189.4 kB / 1.146 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.742, allocations: 94.64 kB / 1.146 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.7421, allocations: 4 kB / 1.146 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.7421, allocations: 38.56 kB / 1.146 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.7421, allocations: 4 kB / 1.146 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of matching and sorting (n=19): time 0.001312/0.7435, allocations: 0.5468 MB / 1.146 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.7435, allocations: 55.41 kB / 1.146 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/0.7436, allocations: 101.9 kB / 1.147 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.7436, allocations: 29.7 kB / 1.147 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.67e-05/0.7436, allocations: 80.52 kB / 1.147 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.473e-05/0.7437, allocations: 67 kB / 1.147 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/0.7437, allocations: 4 kB / 1.147 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.7438, allocations: 322.8 kB / 1.147 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.34e-05/0.7439, allocations: 31.98 kB / 1.147 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.989e-05/0.744, allocations: 71.53 kB / 1.147 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.718e-05/0.7441, allocations: 51.83 kB / 1.147 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.7441, allocations: 0 / 1.147 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002132/0.7443, allocations: 149.5 kB / 1.147 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.7443, allocations: 8 kB / 1.147 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.7443, allocations: 0 / 1.147 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7443, allocations: 3.984 kB / 1.147 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.7445, allocations: 43.92 kB / 1.147 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.7445, allocations: 4 kB / 1.147 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.288e-05/0.7446, allocations: 4 kB / 1.147 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.7446, allocations: 8 kB / 1.147 GB, free: 14.88 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.025e-05/0.7447, allocations: 125.8 kB / 1.147 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.7447, allocations: 11.86 kB / 1.147 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.7448, allocations: 16.44 kB / 1.147 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.7448, allocations: 11.92 kB / 1.148 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7448, allocations: 0 / 1.148 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.7448, allocations: 3.984 kB / 1.148 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.745, allocations: 193.6 kB / 1.148 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.745, allocations: 4.125 kB / 1.148 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.7452, allocations: 43.94 kB / 1.148 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.7452, allocations: 4 kB / 1.148 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.7452, allocations: 0 / 1.148 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.7452, allocations: 0 / 1.148 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7452, allocations: 0 / 1.148 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002876/0.7455, allocations: 210.4 kB / 1.148 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/0.7456, allocations: 89 kB / 1.148 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.7456, allocations: 16.02 kB / 1.148 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.7458, allocations: 4 kB / 1.148 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.699e-05/0.7458, allocations: 11.98 kB / 1.148 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.7458, allocations: 4 kB / 1.148 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.374e-05/0.7458, allocations: 83.27 kB / 1.148 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7459, allocations: 0 / 1.148 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002231/0.7461, allocations: 28 kB / 1.148 GB, free: 13.94 MB / 0.9044 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 (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.0001328/0.7462, allocations: 115.3 kB / 1.148 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001831/0.7464, allocations: 104.2 kB / 1.148 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7464, allocations: 0 / 1.148 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.817e-05/0.7465, allocations: 49.81 kB / 1.148 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.7467, allocations: 15.98 kB / 1.148 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007909/0.7475, allocations: 0.6047 MB / 1.149 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.7478, allocations: 0.7011 MB / 1.15 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001291/0.7479, allocations: 28.62 kB / 1.15 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.7479, allocations: 15.44 kB / 1.15 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.7479, allocations: 3.938 kB / 1.15 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of Templates: time 0.003236/0.7512, allocations: 1.007 MB / 1.151 GB, free: 11.24 MB / 0.9044 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