Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.462/1.462, allocations: 249.3 MB / 261.8 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 178.6 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.2 MB / 0.572 GB, free: 10.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008776/0.0008779, allocations: 86.48 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.549e-05/4.551e-05, allocations: 0 / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2649, allocations: 106.3 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.312, allocations: 359.4 MB / 1.243 GB, free: 7.16 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/1.312, allocations: 66.7 kB / 1.243 GB, free: 7.125 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.6597/1.972, allocations: 12.71 MB / 1.255 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.122e-06/1.972, allocations: 0 / 1.255 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.616e-06/1.972, allocations: 5.031 kB / 1.255 GB, free: 309.9 MB / 0.8542 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.0003231/1.972, allocations: 343.9 kB / 1.256 GB, free: 309.5 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/1.972, allocations: 9.328 kB / 1.256 GB, free: 309.5 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/1.972, allocations: 5.094 kB / 1.256 GB, free: 309.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.869e-05/1.972, allocations: 165.4 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/1.972, allocations: 3.656 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/1.972, allocations: 12.28 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/1.973, allocations: 50.05 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/1.973, allocations: 4 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/1.973, allocations: 0 / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/1.973, allocations: 1.625 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.831e-05/1.973, allocations: 18.69 kB / 1.256 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001943/1.973, allocations: 170.6 kB / 1.256 GB, free: 309.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/1.973, allocations: 50.53 kB / 1.256 GB, free: 309.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/1.973, allocations: 20.3 kB / 1.256 GB, free: 309.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007435/1.974, allocations: 0.6218 MB / 1.257 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/1.974, allocations: 33.09 kB / 1.257 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/1.974, allocations: 0 / 1.257 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0006126/1.974, allocations: 299.8 kB / 1.257 GB, free: 308.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/1.975, allocations: 57.23 kB / 1.257 GB, free: 308.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.187e-05/1.975, allocations: 91.8 kB / 1.257 GB, free: 308 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/1.975, allocations: 30.02 kB / 1.257 GB, free: 308 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/1.975, allocations: 81.78 kB / 1.257 GB, free: 307.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/1.975, allocations: 29.34 kB / 1.257 GB, free: 307.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/1.975, allocations: 3.062 kB / 1.257 GB, free: 307.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.637e-05/1.975, allocations: 316.3 kB / 1.258 GB, free: 307.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.042e-05/1.975, allocations: 12.44 kB / 1.258 GB, free: 307.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.755e-05/1.975, allocations: 59.42 kB / 1.258 GB, free: 307.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.009e-05/1.975, allocations: 25.44 kB / 1.258 GB, free: 307.5 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/1.975, allocations: 0 / 1.258 GB, free: 307.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001564/1.975, allocations: 98.88 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/1.975, allocations: 6.844 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/1.975, allocations: 1.344 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/1.975, allocations: 10.41 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.014e-05/1.975, allocations: 23.64 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.098e-06/1.975, allocations: 1.312 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.804e-05/1.975, allocations: 3.188 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/1.975, allocations: 4.156 kB / 1.258 GB, free: 307.4 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 5.748e-05/1.975, allocations: 113.1 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/1.975, allocations: 2.625 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/1.975, allocations: 9.453 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/1.975, allocations: 1.922 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.975, allocations: 3.953 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/1.976, allocations: 1.641 kB / 1.258 GB, free: 307.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/1.976, allocations: 174 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/1.976, allocations: 0 / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-05/1.976, allocations: 19.02 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.976, allocations: 1.062 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/1.976, allocations: 5.625 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/1.976, allocations: 2.688 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.976, allocations: 1.094 kB / 1.258 GB, free: 307.1 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/1.976, allocations: 182.1 kB / 1.258 GB, free: 307 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/1.976, allocations: 82.03 kB / 1.258 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/1.976, allocations: 2.125 kB / 1.258 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.416e-05/1.976, allocations: 2.203 kB / 1.258 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/1.976, allocations: 4.531 kB / 1.258 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/1.976, allocations: 9.484 kB / 1.258 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.211e-05/1.976, allocations: 82.84 kB / 1.258 GB, free: 306.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.4e-07/1.976, allocations: 0 / 1.258 GB, free: 306.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002418/1.977, allocations: 16.5 kB / 1.259 GB, free: 306.8 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001967/1.977, allocations: 127.7 kB / 1.259 GB, free: 306.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001273/1.977, allocations: 38.61 kB / 1.259 GB, free: 306.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.977, allocations: 0 / 1.259 GB, free: 306.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.823e-05/1.977, allocations: 13.98 kB / 1.259 GB, free: 306.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/1.977, allocations: 11.64 kB / 1.259 GB, free: 306.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005069/1.978, allocations: 278.7 kB / 1.259 GB, free: 306.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/1.978, allocations: 0.6863 MB / 1.26 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.807e-05/1.978, allocations: 4.656 kB / 1.26 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/1.978, allocations: 15.91 kB / 1.26 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of SimCode: time 2.6e-07/1.978, allocations: 0 / 1.26 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.003661/1.982, allocations: 0.9039 MB / 1.261 GB, free: 305.7 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches