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.0008692/0.000869, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009278/0.0009279, allocations: 172.7 kB / 15.95 MB, free: 208 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.44/1.44, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.914/2.914, allocations: 462.6 MB / 0.736 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005838/0.0005838, allocations: 9.094 kB / 0.9021 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4193, allocations: 159.6 MB / 1.058 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001535/0.4209, allocations: 0.9783 MB / 1.059 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003829/0.4248, allocations: 3.052 MB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.094e-05/0.4248, allocations: 3.938 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.963e-05/0.4248, allocations: 0 / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.93e-05/0.4249, allocations: 7.922 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.4254, allocations: 95.55 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.607e-05/0.4254, allocations: 27.92 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.4255, allocations: 0 / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.367e-05/0.4255, allocations: 23.92 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.229e-05/0.4256, allocations: 19.91 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.4256, allocations: 4 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.4258, allocations: 43.84 kB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.718e-05/0.4259, allocations: 15.98 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.4259, allocations: 29.7 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.426, allocations: 36.23 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.426, allocations: 7.938 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4261, allocations: 0 / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.4261, allocations: 0 / 1.062 GB, free: 1.031 MB / 0.8106 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.0004782/0.4266, allocations: 335.4 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4266, allocations: 8.031 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.4267, allocations: 4 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.4269, allocations: 178.9 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4269, allocations: 4 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.4269, allocations: 7.906 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.4271, allocations: 49.67 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4271, allocations: 4 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.4271, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4271, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.119e-05/0.4272, allocations: 27.95 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.4274, allocations: 173.6 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.897e-05/0.4275, allocations: 54.5 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.008e-05/0.4276, allocations: 12.86 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008415/0.4284, allocations: 0.5946 MB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.4285, allocations: 30.56 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.4285, allocations: 4 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006604/0.4291, allocations: 298.5 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.4292, allocations: 59.36 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.428e-05/0.4293, allocations: 97.84 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.4293, allocations: 33.7 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/0.4294, allocations: 87.98 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.4294, allocations: 23.66 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-06/0.4294, allocations: 7.938 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4296, allocations: 318.8 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.682e-05/0.4296, allocations: 15.94 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/0.4297, allocations: 49.14 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.763e-05/0.4297, allocations: 27.98 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.4297, allocations: 0 / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001384/0.4299, allocations: 89.91 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.4299, allocations: 7.984 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.4299, allocations: 4 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.4299, allocations: 0 / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.489e-05/0.43, allocations: 23.94 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.43, allocations: 7.953 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.951e-05/0.4301, allocations: 12.12 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.4301, allocations: 4 kB / 1.065 GB, free: 14.03 MB / 0.8262 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 0.0001019/0.4302, allocations: 113.8 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.4302, allocations: 4 kB / 1.065 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.4303, allocations: 7.969 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4303, allocations: 3.938 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4303, allocations: 4 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4303, allocations: 3.953 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.4306, allocations: 169.7 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4306, allocations: 4 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.258e-05/0.4307, allocations: 15.98 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4307, allocations: 0 / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.4307, allocations: 4 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4307, allocations: 4 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4307, allocations: 0 / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.431, allocations: 171.7 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.431, allocations: 85.14 kB / 1.065 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.431, allocations: 7.938 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-05/0.4311, allocations: 3.938 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.319e-05/0.4312, allocations: 16.06 kB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.4312, allocations: 0 / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.858e-05/0.4312, allocations: 79.28 kB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4312, allocations: 0 / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002338/0.4315, allocations: 16 kB / 1.065 GB, free: 13.23 MB / 0.8262 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.0001601/0.4316, allocations: 99.25 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001129/0.4318, allocations: 43.91 kB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4318, allocations: 4 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.171e-05/0.4318, allocations: 11.94 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.4321, allocations: 17.61 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006415/0.4327, allocations: 390.8 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.433, allocations: 0.6848 MB / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.177e-05/0.4331, allocations: 4 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/0.4331, allocations: 15.44 kB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4331, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.003065/0.4362, allocations: 0.5724 MB / 1.067 GB, free: 11.34 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches