Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_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_latest_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009193/0.0009193, 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.0009412/0.0009413, 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.319/1.319, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.615/2.615, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003223, allocations: 12 kB / 0.8707 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6174/0.6178, allocations: 153.7 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001284/0.6191, allocations: 0.9682 MB / 1.022 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003291/0.6224, allocations: 2.823 MB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.6225, allocations: 3.938 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.401e-05/0.6225, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.739e-05/0.6225, allocations: 7.969 kB / 1.025 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.6229, allocations: 87.78 kB / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.59e-05/0.623, allocations: 27.95 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.623, allocations: 0 / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.215e-05/0.6231, allocations: 27.86 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.6231, allocations: 11.97 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.6232, allocations: 4 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.6234, allocations: 55.91 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.6235, allocations: 11.98 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.708e-05/0.6235, allocations: 37.64 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.6236, allocations: 25.94 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.6236, allocations: 0 / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.059e-06/0.6236, allocations: 3.984 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.6236, allocations: 7.938 kB / 1.025 GB, free: 12.96 MB / 0.7794 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.0004381/0.6241, allocations: 335.3 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.6241, allocations: 15.98 kB / 1.025 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.449e-05/0.6242, allocations: 4 kB / 1.025 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.035e-05/0.6243, allocations: 163.1 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.741e-05/0.6244, allocations: 7.953 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.6244, allocations: 7.938 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.6246, allocations: 61.64 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.6246, allocations: 0 / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.6246, allocations: 0 / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.6246, allocations: 7.984 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.961e-05/0.6247, allocations: 23.91 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.6248, allocations: 161.6 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.696e-05/0.6249, allocations: 58.52 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006716/0.6256, allocations: 0.5871 MB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.6256, allocations: 34.56 kB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/0.6256, allocations: 0 / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005713/0.6262, allocations: 306.2 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.6263, allocations: 51.41 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.209e-05/0.6263, allocations: 97.86 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.6264, allocations: 29.69 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.091e-05/0.6264, allocations: 92 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.6264, allocations: 23.66 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.6265, allocations: 0 / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.6266, allocations: 326.8 kB / 1.027 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.493e-05/0.6266, allocations: 8 kB / 1.027 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.57e-05/0.6267, allocations: 49.14 kB / 1.027 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.784e-05/0.6267, allocations: 16 kB / 1.027 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.6267, allocations: 7.938 kB / 1.027 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001328/0.6269, allocations: 97.45 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.6269, allocations: 13.19 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.6269, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.6269, allocations: 4.438 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.702e-05/0.627, allocations: 19.98 kB / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.627, allocations: 0 / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.735e-05/0.6271, allocations: 8 kB / 1.027 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.6271, allocations: 12.08 kB / 1.027 GB, free: 9.988 MB / 0.7794 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 () * Number of clocked 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 8.042e-05/0.6272, allocations: 125.7 kB / 1.027 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.6272, allocations: 0 / 1.027 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.6272, allocations: 15.95 kB / 1.027 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.6272, allocations: 0 / 1.027 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.6273, allocations: 0 / 1.027 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.6273, allocations: 0 / 1.027 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.6276, allocations: 177.6 kB / 1.028 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6276, allocations: 0 / 1.028 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.6277, allocations: 12 kB / 1.028 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.6277, allocations: 8 kB / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.158e-06/0.6277, allocations: 3.984 kB / 1.028 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.6277, allocations: 0 / 1.028 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.6277, allocations: 0 / 1.028 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.6279, allocations: 175.6 kB / 1.028 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.6279, allocations: 85.14 kB / 1.028 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.628, allocations: 0 / 1.028 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.6281, allocations: 4.094 kB / 1.028 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.042e-05/0.6281, allocations: 11.97 kB / 1.028 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-05/0.6282, allocations: 8 kB / 1.028 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.222e-05/0.6282, allocations: 75.28 kB / 1.028 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6282, allocations: 0 / 1.028 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002351/0.6285, allocations: 16 kB / 1.028 GB, free: 9.191 MB / 0.7794 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 () * Number of clocked 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.0001333/0.6286, allocations: 99.19 kB / 1.028 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001229/0.6287, allocations: 47.92 kB / 1.028 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6287, allocations: 0 / 1.028 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.375e-05/0.6288, allocations: 19.92 kB / 1.028 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.629, allocations: 7.953 kB / 1.028 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005929/0.6296, allocations: 386.9 kB / 1.029 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.6298, allocations: 0.6848 MB / 1.029 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.786e-05/0.6299, allocations: 15.84 kB / 1.029 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.6299, allocations: 11.44 kB / 1.029 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6299, allocations: 0 / 1.029 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of Templates: time 0.002727/0.6327, allocations: 0.5666 MB / 1.03 GB, free: 7.305 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches