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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0008582/0.0008585, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.006102/0.006102, allocations: 173.9 kB / 16.27 MB, free: 6.613 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.441/1.441, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.028/3.028, allocations: 462.7 MB / 0.7364 GB, free: 264 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004493, allocations: 12.88 kB / 0.9028 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3402, allocations: 159.6 MB / 1.059 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001441/0.3417, allocations: 0.9938 MB / 1.06 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003949/0.3456, allocations: 3.21 MB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.093e-05/0.3457, allocations: 0 / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.3457, allocations: 0 / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.3458, allocations: 7.938 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005531/0.3463, allocations: 95.61 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.217e-05/0.3464, allocations: 39.89 kB / 1.063 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.3465, allocations: 0 / 1.063 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.775e-05/0.3465, allocations: 19.94 kB / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.137e-05/0.3466, allocations: 15.97 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.3466, allocations: 4 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.3468, allocations: 75.75 kB / 1.063 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.3469, allocations: 19.91 kB / 1.063 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.297e-05/0.3469, allocations: 41.64 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.3471, allocations: 68.19 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3471, allocations: 0 / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3471, allocations: 0 / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3471, allocations: 0 / 1.063 GB, free: 0.8477 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.000389/0.3475, allocations: 331.5 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3476, allocations: 8.031 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.3477, allocations: 8.938 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3478, allocations: 180.2 kB / 1.064 GB, free: 252 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.3478, allocations: 384 / 1.064 GB, free: 252 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.3479, allocations: 4.375 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.348, allocations: 61.73 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.348, allocations: 0 / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.348, allocations: 0 / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.3481, allocations: 4 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.95e-05/0.3481, allocations: 19.98 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000198/0.3483, allocations: 165.7 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.153e-05/0.3484, allocations: 54.5 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.3485, allocations: 12.86 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007485/0.3492, allocations: 0.6025 MB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3493, allocations: 34.56 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.3493, allocations: 4 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006068/0.3499, allocations: 294.2 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.3499, allocations: 51.41 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.355e-05/0.35, allocations: 105.8 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.35, allocations: 29.7 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/0.3501, allocations: 88.05 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.3501, allocations: 27.72 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.3502, allocations: 25.7 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3503, allocations: 314.8 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.339e-05/0.3503, allocations: 23.86 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.566e-05/0.3504, allocations: 49.14 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.3505, allocations: 73.09 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3505, allocations: 0 / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000136/0.3507, allocations: 97.45 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3507, allocations: 5.719 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3507, allocations: 0 / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3507, allocations: 8.125 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.498e-05/0.3508, allocations: 23.92 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3508, allocations: 4 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.836e-05/0.3509, allocations: 7.938 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.3509, allocations: 4 kB / 1.066 GB, free: 13.76 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.517e-05/0.351, allocations: 113.8 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.351, allocations: 4 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.351, allocations: 7.969 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3511, allocations: 3.984 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3511, allocations: 4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3511, allocations: 3.938 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.3513, allocations: 169.7 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3513, allocations: 0 / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.031e-05/0.3514, allocations: 19.94 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3514, allocations: 0 / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.3514, allocations: 4.438 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3514, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3514, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.3516, allocations: 183.4 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.3517, allocations: 85.14 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.3517, allocations: 4 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.3518, allocations: 3.938 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.3518, allocations: 4 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3519, allocations: 15.86 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.223e-05/0.3519, allocations: 83.59 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3519, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002289/0.3522, allocations: 16 kB / 1.066 GB, free: 12.95 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 (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.0001294/0.3523, allocations: 103.4 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001052/0.3524, allocations: 40.08 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3524, allocations: 4 kB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.989e-05/0.3524, allocations: 15.97 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.3527, allocations: 11.94 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/0.3533, allocations: 394.7 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.3536, allocations: 0.6809 MB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.488e-05/0.3537, allocations: 11.98 kB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.206e-05/0.3537, allocations: 11.44 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3537, allocations: 0 / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Templates: time 0.002758/0.3565, allocations: 0.5898 MB / 1.068 GB, free: 11.04 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