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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009263/0.0009263, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001011/0.001011, allocations: 168.7 kB / 15.95 MB, free: 200 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.469/1.469, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.591/2.591, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 12 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8006/0.801, allocations: 142.4 MB / 0.9544 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001068/0.8021, allocations: 0.9848 MB / 0.9554 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002928/0.805, allocations: 3.061 MB / 0.9584 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.8051, allocations: 0 / 0.9584 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.8051, allocations: 0 / 0.9584 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.582e-05/0.8051, allocations: 9.672 kB / 0.9584 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.8056, allocations: 78.73 kB / 0.9585 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.898e-05/0.8056, allocations: 42.17 kB / 0.9585 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.56e-05/0.8057, allocations: 2.156 kB / 0.9585 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.742e-05/0.8057, allocations: 17.36 kB / 0.9585 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.809e-05/0.8058, allocations: 19.59 kB / 0.9585 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.8058, allocations: 2.031 kB / 0.9585 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.806, allocations: 52.86 kB / 0.9586 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.806, allocations: 13.5 kB / 0.9586 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.806, allocations: 34.36 kB / 0.9586 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.8062, allocations: 31.8 kB / 0.9587 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.8062, allocations: 0 / 0.9587 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8062, allocations: 1.688 kB / 0.9587 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.8062, allocations: 0 / 0.9587 GB, free: 4.18 MB / 0.7169 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.0003021/0.8065, allocations: 342.9 kB / 0.959 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.8065, allocations: 8.719 kB / 0.959 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/0.8066, allocations: 11.66 kB / 0.959 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.14e-05/0.8067, allocations: 164.5 kB / 0.9592 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.8067, allocations: 5.75 kB / 0.9592 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.8068, allocations: 3.938 kB / 0.9592 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.8069, allocations: 52.67 kB / 0.9592 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.8069, allocations: 0 / 0.9592 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.8069, allocations: 5.484 kB / 0.9592 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.8069, allocations: 1.594 kB / 0.9592 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.868e-05/0.807, allocations: 22.42 kB / 0.9592 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.8071, allocations: 168.9 kB / 0.9594 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.883e-05/0.8072, allocations: 50.86 kB / 0.9595 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.34e-05/0.8072, allocations: 16.17 kB / 0.9595 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005476/0.8078, allocations: 0.5957 MB / 0.9601 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.8078, allocations: 40.5 kB / 0.9601 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.8078, allocations: 0 / 0.9601 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005015/0.8083, allocations: 306.5 kB / 0.9604 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.8084, allocations: 51.41 kB / 0.9604 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.644e-05/0.8084, allocations: 106 kB / 0.9605 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/0.8084, allocations: 27.08 kB / 0.9606 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.677e-05/0.8085, allocations: 85.42 kB / 0.9606 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.8085, allocations: 26.41 kB / 0.9607 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.8085, allocations: 5.375 kB / 0.9607 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.8085, allocations: 316.2 kB / 0.961 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.554e-05/0.8086, allocations: 14.81 kB / 0.961 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.442e-05/0.8086, allocations: 53.52 kB / 0.961 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.008e-05/0.8087, allocations: 22.94 kB / 0.9611 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8087, allocations: 3.953 kB / 0.9611 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00012/0.8088, allocations: 97.2 kB / 0.9612 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.8088, allocations: 5.5 kB / 0.9612 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.8088, allocations: 2.75 kB / 0.9612 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.8088, allocations: 1.375 kB / 0.9612 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.568e-05/0.8089, allocations: 20.61 kB / 0.9612 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.8089, allocations: 6.75 kB / 0.9612 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.444e-05/0.809, allocations: 5.312 kB / 0.9612 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.809, allocations: 4.125 kB / 0.9612 GB, free: 1.477 MB / 0.7169 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 5.036e-05/0.809, allocations: 112.6 kB / 0.9613 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.8091, allocations: 10.69 kB / 0.9613 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.8091, allocations: 9.344 kB / 0.9613 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.8091, allocations: 1.375 kB / 0.9613 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.8091, allocations: 0 / 0.9613 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.8091, allocations: 4 kB / 0.9613 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.8093, allocations: 174.2 kB / 0.9615 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.8093, allocations: 448 / 0.9615 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.172e-05/0.8094, allocations: 17.48 kB / 0.9615 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.8094, allocations: 0 / 0.9615 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.8094, allocations: 9.234 kB / 0.9615 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.8094, allocations: 1.438 kB / 0.9615 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8094, allocations: 3.938 kB / 0.9615 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.8096, allocations: 167.8 kB / 0.9617 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.8096, allocations: 87.2 kB / 0.9618 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.8096, allocations: 9.641 kB / 0.9618 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.552e-05/0.8097, allocations: 2.5 kB / 0.9618 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.8098, allocations: 6.172 kB / 0.9618 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.8098, allocations: 2.562 kB / 0.9618 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.823e-05/0.8098, allocations: 88.31 kB / 0.9619 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8098, allocations: 1.312 kB / 0.9619 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002371/0.81, allocations: 9.906 kB / 0.9619 GB, free: 0.7656 MB / 0.7169 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.00011/0.8102, allocations: 113.2 kB / 0.962 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001067/0.8103, allocations: 41.73 kB / 0.962 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8103, allocations: 0 / 0.962 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.487e-05/0.8103, allocations: 18.33 kB / 0.9621 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.8106, allocations: 7.688 kB / 0.9621 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005016/0.8111, allocations: 388.3 kB / 0.9624 GB, free: 304 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.8113, allocations: 0.6908 MB / 0.9631 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.439e-05/0.8114, allocations: 11.25 kB / 0.9631 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.068e-05/0.8114, allocations: 10.84 kB / 0.9631 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.8114, allocations: 0 / 0.9631 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of Templates: time 0.002877/0.8143, allocations: 0.561 MB / 0.9637 GB, free: 15.29 MB / 0.7325 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