Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009296/0.0009296, allocations: 88.2 kB / 16.03 MB, free: 56 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 187.8 kB / 16.93 MB, free: 6.891 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.41/1.41, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.569/2.569, allocations: 437.8 MB / 0.7128 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005635/0.0005636, allocations: 12 kB / 0.8735 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5911/0.5917, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001296/0.593, allocations: 0.9878 MB / 1.025 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003562/0.5966, allocations: 3.202 MB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.108e-05/0.5967, allocations: 0 / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.5967, allocations: 3.938 kB / 1.028 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.5967, allocations: 7.984 kB / 1.028 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.5972, allocations: 95.59 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.5972, allocations: 31.86 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 2.969e-05/0.5973, allocations: 0 / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.136e-05/0.5973, allocations: 23.92 kB / 1.028 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.5974, allocations: 19.97 kB / 1.028 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.756e-06/0.5974, allocations: 4 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.5976, allocations: 71.81 kB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.5976, allocations: 15.92 kB / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.5977, allocations: 33.7 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.5978, allocations: 45.84 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.5978, allocations: 0 / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5978, allocations: 0 / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.5978, allocations: 0 / 1.028 GB, free: 11.32 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.0003362/0.5982, allocations: 339.5 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.5982, allocations: 11.97 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.98e-05/0.5983, allocations: 8.922 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.5984, allocations: 164.4 kB / 1.029 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.5984, allocations: 4.375 kB / 1.029 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.5985, allocations: 8.281 kB / 1.029 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.5986, allocations: 61.78 kB / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.5986, allocations: 0 / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.5986, allocations: 0 / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.5986, allocations: 8 kB / 1.029 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.611e-05/0.5987, allocations: 11.98 kB / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.5988, allocations: 169.6 kB / 1.029 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.42e-05/0.5989, allocations: 50.56 kB / 1.029 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.818e-05/0.599, allocations: 16.84 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006493/0.5996, allocations: 0.6026 MB / 1.03 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.5997, allocations: 30.56 kB / 1.03 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.5997, allocations: 0 / 1.03 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005194/0.6002, allocations: 298.1 kB / 1.03 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.6003, allocations: 51.41 kB / 1.03 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.3e-05/0.6003, allocations: 113.8 kB / 1.03 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.6004, allocations: 29.7 kB / 1.03 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.6004, allocations: 84.05 kB / 1.03 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.6004, allocations: 31.58 kB / 1.03 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.6005, allocations: 17.72 kB / 1.03 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.6006, allocations: 318.8 kB / 1.03 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.721e-05/0.6006, allocations: 15.98 kB / 1.03 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.627e-05/0.6007, allocations: 53.58 kB / 1.031 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.961e-05/0.6007, allocations: 65.09 kB / 1.031 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.6008, allocations: 7.938 kB / 1.031 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001318/0.6009, allocations: 101.5 kB / 1.031 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.6009, allocations: 4 kB / 1.031 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.6009, allocations: 7.984 kB / 1.031 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.6009, allocations: 0 / 1.031 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.125e-05/0.601, allocations: 20 kB / 1.031 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.601, allocations: 4 kB / 1.031 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.566e-05/0.6011, allocations: 3.938 kB / 1.031 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.6011, allocations: 4 kB / 1.031 GB, free: 8.23 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.947e-05/0.6012, allocations: 126.4 kB / 1.031 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.6012, allocations: 4 kB / 1.031 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.6012, allocations: 7.969 kB / 1.031 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6012, allocations: 0 / 1.031 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.6012, allocations: 0 / 1.031 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.6013, allocations: 3.938 kB / 1.031 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.6015, allocations: 177.7 kB / 1.031 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.6015, allocations: 0 / 1.031 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.058e-05/0.6016, allocations: 16 kB / 1.031 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.6016, allocations: 3.984 kB / 1.031 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.6016, allocations: 0 / 1.031 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6016, allocations: 4 kB / 1.031 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6016, allocations: 3.938 kB / 1.031 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.6018, allocations: 179.4 kB / 1.031 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.6018, allocations: 81.14 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.6019, allocations: 8 kB / 1.031 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.602, allocations: 0 / 1.031 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.602, allocations: 7.984 kB / 1.031 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.602, allocations: 7.938 kB / 1.031 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.96e-05/0.602, allocations: 83.28 kB / 1.031 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6021, allocations: 0 / 1.031 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002362/0.6023, allocations: 12 kB / 1.031 GB, free: 7.422 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 (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.0001024/0.6024, allocations: 103.7 kB / 1.032 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.664e-05/0.6025, allocations: 47.89 kB / 1.032 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6025, allocations: 4.188 kB / 1.032 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.943e-05/0.6025, allocations: 19.94 kB / 1.032 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.6028, allocations: 9.562 kB / 1.032 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005637/0.6034, allocations: 416.1 kB / 1.032 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.6036, allocations: 0.6848 MB / 1.033 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.6037, allocations: 15.44 kB / 1.033 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of SimCode: time 5.51e-07/0.6037, allocations: 0 / 1.033 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of Templates: time 0.001981/0.6057, allocations: 0.7618 MB / 1.033 GB, free: 5.305 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches