Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 114.9 kB / 17.13 MB, free: 6.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 212.7 kB / 20.1 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.861/2.861, allocations: 0.49 GB / 0.7923 GB, free: 1.293 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 81.91 kB / 1.15 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9498/0.9518, allocations: 176.1 MB / 1.322 GB, free: 25.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001866/0.9537, allocations: 1.288 MB / 1.323 GB, free: 24.12 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002667/0.9563, allocations: 3.327 MB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.9564, allocations: 0 / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.9564, allocations: 3.938 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.995e-05/0.9564, allocations: 6.891 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004435/0.9569, allocations: 110 kB / 1.327 GB, free: 21.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.902e-05/0.9569, allocations: 32.64 kB / 1.327 GB, free: 21.64 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.497e-05/0.957, allocations: 0 / 1.327 GB, free: 21.64 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.196e-05/0.957, allocations: 30.67 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.69e-05/0.9571, allocations: 16.8 kB / 1.327 GB, free: 21.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.9571, allocations: 2.719 kB / 1.327 GB, free: 21.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.9573, allocations: 87.3 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.9573, allocations: 2.562 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.69e-05/0.9573, allocations: 23.34 kB / 1.327 GB, free: 21.56 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.9575, allocations: 64.39 kB / 1.327 GB, free: 21.55 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9575, allocations: 0 / 1.327 GB, free: 21.55 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.243e-06/0.9575, allocations: 3.938 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.9575, allocations: 0 / 1.327 GB, free: 21.54 MB / 1.061 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.0003146/0.9578, allocations: 358 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.9578, allocations: 12.89 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.04e-05/0.9579, allocations: 3.906 kB / 1.327 GB, free: 21.17 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.245e-05/0.958, allocations: 167.1 kB / 1.327 GB, free: 20.97 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.958, allocations: 4.312 kB / 1.327 GB, free: 20.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.958, allocations: 10.06 kB / 1.327 GB, free: 20.96 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.9581, allocations: 54.98 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.9581, allocations: 3.984 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.9581, allocations: 0 / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.9581, allocations: 6.844 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.866e-05/0.9582, allocations: 22.94 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001237/0.9583, allocations: 168.5 kB / 1.328 GB, free: 20.71 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.979e-05/0.9584, allocations: 45.02 kB / 1.328 GB, free: 20.68 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.532e-05/0.9584, allocations: 19.91 kB / 1.328 GB, free: 20.66 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005158/0.9589, allocations: 0.5957 MB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.9589, allocations: 33.09 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.9589, allocations: 3.938 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.000478/0.9594, allocations: 296.4 kB / 1.329 GB, free: 19.7 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.9594, allocations: 54.19 kB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.67e-05/0.9595, allocations: 99.83 kB / 1.329 GB, free: 19.54 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.9595, allocations: 32.48 kB / 1.329 GB, free: 19.5 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.9595, allocations: 96.03 kB / 1.329 GB, free: 19.4 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.9595, allocations: 29.97 kB / 1.329 GB, free: 19.38 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/0.9596, allocations: 22.12 kB / 1.329 GB, free: 19.36 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.186e-05/0.9596, allocations: 322.1 kB / 1.329 GB, free: 19.04 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.407e-05/0.9596, allocations: 12.34 kB / 1.329 GB, free: 19.04 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.856e-05/0.9597, allocations: 54 kB / 1.329 GB, free: 18.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.713e-05/0.9598, allocations: 72.48 kB / 1.329 GB, free: 18.91 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.9598, allocations: 0 / 1.329 GB, free: 18.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001342/0.9599, allocations: 97.59 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.9599, allocations: 8.844 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.9599, allocations: 1.188 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.9599, allocations: 3.344 kB / 1.329 GB, free: 18.86 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.387e-05/0.96, allocations: 19.56 kB / 1.329 GB, free: 18.85 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.96, allocations: 5.609 kB / 1.329 GB, free: 18.85 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.925e-05/0.9601, allocations: 5.531 kB / 1.329 GB, free: 18.85 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.9601, allocations: 4.219 kB / 1.329 GB, free: 18.85 MB / 1.061 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 4.836e-05/0.9601, allocations: 120.9 kB / 1.33 GB, free: 18.72 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.9602, allocations: 6.766 kB / 1.33 GB, free: 18.72 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.9602, allocations: 13.03 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.9602, allocations: 1.219 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.9602, allocations: 3.938 kB / 1.33 GB, free: 18.7 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.9602, allocations: 8.766 kB / 1.33 GB, free: 18.69 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.9604, allocations: 179.2 kB / 1.33 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9604, allocations: 0.5312 kB / 1.33 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.155e-05/0.9605, allocations: 17.38 kB / 1.33 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.9605, allocations: 3.375 kB / 1.33 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.9605, allocations: 4.812 kB / 1.33 GB, free: 18.48 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.9605, allocations: 1.062 kB / 1.33 GB, free: 18.48 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.9605, allocations: 0 / 1.33 GB, free: 18.48 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.9606, allocations: 172.1 kB / 1.33 GB, free: 18.34 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.051e-05/0.9607, allocations: 83.67 kB / 1.33 GB, free: 18.24 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.9607, allocations: 4.469 kB / 1.33 GB, free: 18.24 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.9608, allocations: 5.906 kB / 1.33 GB, free: 18.23 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.9608, allocations: 2.25 kB / 1.33 GB, free: 18.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.9608, allocations: 10 kB / 1.33 GB, free: 18.23 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.015e-05/0.9608, allocations: 85.41 kB / 1.33 GB, free: 18.15 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9608, allocations: 0 / 1.33 GB, free: 18.15 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002455/0.9611, allocations: 9.969 kB / 1.33 GB, free: 18.15 MB / 1.061 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.0001077/0.9612, allocations: 101.2 kB / 1.33 GB, free: 18.06 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001181/0.9613, allocations: 42.95 kB / 1.33 GB, free: 18.05 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9613, allocations: 5.125 kB / 1.33 GB, free: 18.04 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.749e-05/0.9613, allocations: 17.78 kB / 1.33 GB, free: 18.04 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.9616, allocations: 9.406 kB / 1.33 GB, free: 18.03 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.9621, allocations: 356 kB / 1.331 GB, free: 17.73 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.585e-05/0.9622, allocations: 0.6819 MB / 1.331 GB, free: 17.04 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.707e-05/0.9622, allocations: 11.44 kB / 1.331 GB, free: 17.03 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.9622, allocations: 0 / 1.331 GB, free: 17.03 MB / 1.061 GB Notification: Performance of Templates: time 0.002479/0.9647, allocations: 0.7839 MB / 1.332 GB, free: 16.96 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable der(cpCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.08831616200041]