Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001412/0.001412, allocations: 105.5 kB / 16.41 MB, free: 6.465 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.001525/0.001525, allocations: 187 kB / 17.34 MB, free: 5.719 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.301/2.301, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.89 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8589/0.8603, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002433/0.8628, allocations: 1.263 MB / 1.09 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003361/0.8662, allocations: 3.259 MB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.413e-05/0.8662, allocations: 0 / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.365e-05/0.8663, allocations: 1.219 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.24e-05/0.8663, allocations: 5.391 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.8669, allocations: 105.1 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.867, allocations: 43.52 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.8671, allocations: 2.484 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.475e-05/0.8671, allocations: 16.39 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.853e-05/0.8672, allocations: 21.88 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.8672, allocations: 2.25 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002466/0.8675, allocations: 71.94 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.8675, allocations: 12.66 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.295e-05/0.8676, allocations: 12.95 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.8678, allocations: 72.67 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.8678, allocations: 0 / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.246e-06/0.8678, allocations: 4.609 kB / 1.093 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.8678, allocations: 0.875 kB / 1.093 GB, free: 2.102 MB / 0.8575 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.0003786/0.8682, allocations: 346.5 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.8682, allocations: 9.375 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.8684, allocations: 9.109 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.559e-05/0.8684, allocations: 164.6 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.8685, allocations: 6.219 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.8685, allocations: 4.266 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.8687, allocations: 62.28 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.8687, allocations: 0 / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.8687, allocations: 1 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.8687, allocations: 0.7188 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.887e-05/0.8688, allocations: 24.02 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.8689, allocations: 167.1 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.382e-05/0.869, allocations: 53.84 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.005e-05/0.869, allocations: 17.8 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005773/0.8696, allocations: 0.6064 MB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.8697, allocations: 36.92 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.8697, allocations: 0 / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005334/0.8702, allocations: 296.3 kB / 1.095 GB, free: 272 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.453e-05/0.8702, allocations: 57.3 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.8703, allocations: 99.92 kB / 1.095 GB, free: 100 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.8703, allocations: 26.61 kB / 1.095 GB, free: 68 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.8704, allocations: 90.28 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.8704, allocations: 24.48 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.8705, allocations: 27.72 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.8706, allocations: 321.8 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.198e-05/0.8706, allocations: 10.23 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-05/0.8707, allocations: 55.95 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.8708, allocations: 81.75 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.8708, allocations: 0 / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001486/0.871, allocations: 90.67 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.871, allocations: 5.906 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.871, allocations: 1.531 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.871, allocations: 2.094 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.426e-05/0.8711, allocations: 23.81 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.8711, allocations: 1.844 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.916e-05/0.8712, allocations: 6 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.8712, allocations: 8.25 kB / 1.096 GB, free: 15.42 MB / 0.8731 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.8713, allocations: 121.6 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.114e-05/0.8713, allocations: 7.656 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.075e-05/0.8714, allocations: 8.531 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.8714, allocations: 1.125 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.8714, allocations: 1.859 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.8714, allocations: 3.938 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.8716, allocations: 177.3 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.8716, allocations: 1.188 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.699e-05/0.8717, allocations: 18.86 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.8717, allocations: 1.422 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.8718, allocations: 4.844 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.8718, allocations: 0.6094 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8718, allocations: 0.875 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.872, allocations: 175.5 kB / 1.096 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.872, allocations: 90.31 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.8721, allocations: 4.938 kB / 1.097 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.8722, allocations: 8.219 kB / 1.097 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.8722, allocations: 3.719 kB / 1.097 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.8722, allocations: 6.141 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.362e-05/0.8723, allocations: 82.97 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8723, allocations: 0 / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002364/0.8725, allocations: 14.89 kB / 1.097 GB, free: 14.72 MB / 0.8731 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 (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.0001427/0.8726, allocations: 105.7 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.8728, allocations: 42.92 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8728, allocations: 0.9688 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.057e-05/0.8728, allocations: 17.22 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.8732, allocations: 8.969 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.8738, allocations: 350 kB / 1.097 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.8741, allocations: 0.6825 MB / 1.098 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.8741, allocations: 16.25 kB / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of SimCode: time 2.61e-07/0.8741, allocations: 0 / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of Templates: time 0.002384/0.8765, allocations: 0.7789 MB / 1.099 GB, free: 13.54 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches