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.004645/0.004645, allocations: 102.7 kB / 15.73 MB, free: 6.488 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.001051/0.001051, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.488/2.488, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 62.31 kB / 0.9508 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3553, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002729/0.3581, allocations: 1.269 MB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005069/0.3632, allocations: 3.258 MB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.677e-05/0.3633, allocations: 4 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.3633, allocations: 3.938 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.998e-05/0.3634, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.364, allocations: 111.5 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.387e-05/0.3641, allocations: 31.92 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.877e-05/0.3641, allocations: 7.969 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.267e-05/0.3642, allocations: 15.94 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.268e-05/0.3642, allocations: 11.98 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.3643, allocations: 8 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002395/0.3645, allocations: 83.73 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.3645, allocations: 7.922 kB / 1.093 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.3646, allocations: 19.92 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.3648, allocations: 71.84 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3648, allocations: 0 / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3648, allocations: 0 / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3648, allocations: 0 / 1.093 GB, free: 12.6 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.0005497/0.3654, allocations: 343.5 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3654, allocations: 16.03 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.3656, allocations: 8.844 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.3657, allocations: 168.3 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.3658, allocations: 4.375 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.3658, allocations: 8.375 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.366, allocations: 57.73 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.366, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.366, allocations: 4 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.366, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.727e-05/0.3661, allocations: 23.98 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002942/0.3664, allocations: 161.7 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.3665, allocations: 54.5 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.795e-05/0.3666, allocations: 16.8 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009513/0.3675, allocations: 0.5948 MB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.3676, allocations: 42.56 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.353e-06/0.3676, allocations: 0 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006492/0.3683, allocations: 294.2 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.3683, allocations: 55.41 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.029e-05/0.3684, allocations: 101.8 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3684, allocations: 29.7 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.641e-05/0.3685, allocations: 88.05 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.3685, allocations: 27.56 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.682e-05/0.3686, allocations: 29.7 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3687, allocations: 314.8 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.433e-05/0.3688, allocations: 23.86 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-05/0.3688, allocations: 49.14 kB / 1.095 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.3689, allocations: 77.27 kB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3689, allocations: 4 kB / 1.095 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001304/0.3691, allocations: 93.64 kB / 1.095 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3691, allocations: 4 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3691, allocations: 4 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3691, allocations: 0 / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.611e-05/0.3692, allocations: 23.92 kB / 1.095 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3692, allocations: 4 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.965e-05/0.3693, allocations: 7.938 kB / 1.095 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-06/0.3693, allocations: 4 kB / 1.095 GB, free: 9.492 MB / 0.8575 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 9.044e-05/0.3694, allocations: 113.8 kB / 1.095 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.3694, allocations: 11.94 kB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.3695, allocations: 11.95 kB / 1.095 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3695, allocations: 0 / 1.095 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3695, allocations: 448 / 1.095 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.882e-06/0.3695, allocations: 7.938 kB / 1.095 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.3697, allocations: 169.7 kB / 1.096 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3698, allocations: 8 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.163e-05/0.3698, allocations: 15.94 kB / 1.096 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3699, allocations: 0 / 1.096 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3699, allocations: 4 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.3699, allocations: 3.984 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3699, allocations: 8 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.3701, allocations: 163.5 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.759e-05/0.3702, allocations: 89.05 kB / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.3702, allocations: 3.938 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.596e-05/0.3703, allocations: 0 / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-05/0.3703, allocations: 7.984 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.3703, allocations: 7.938 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.732e-05/0.3704, allocations: 91.16 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3704, allocations: 0 / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002345/0.3706, allocations: 16 kB / 1.096 GB, free: 8.676 MB / 0.8575 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.0001544/0.3708, allocations: 95.25 kB / 1.096 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001373/0.3709, allocations: 47.91 kB / 1.096 GB, free: 8.523 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3709, allocations: 0 / 1.096 GB, free: 8.523 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.173e-05/0.371, allocations: 20.39 kB / 1.096 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3713, allocations: 12.61 kB / 1.096 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005967/0.3719, allocations: 329.9 kB / 1.096 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.3722, allocations: 0.6846 MB / 1.097 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.374e-05/0.3723, allocations: 7.984 kB / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.3723, allocations: 11.44 kB / 1.097 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.3723, allocations: 0 / 1.097 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of Templates: time 0.003075/0.3754, allocations: 0.6198 MB / 1.098 GB, free: 6.797 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches