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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001103/0.001103, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 196.2 kB / 16.53 MB, free: 6.672 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.884/2.884, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.03 kB / 0.912 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3356, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002482/0.3382, allocations: 1.262 MB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003858/0.3421, allocations: 3.262 MB / 1.073 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.63e-05/0.3421, allocations: 0 / 1.073 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.3421, allocations: 3.938 kB / 1.073 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.566e-05/0.3422, allocations: 11.92 kB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.3427, allocations: 111.5 kB / 1.073 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.027e-05/0.3428, allocations: 31.92 kB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.813e-05/0.3428, allocations: 4 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.588e-05/0.3429, allocations: 23.84 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.634e-05/0.3429, allocations: 15.98 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.343, allocations: 4 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.3432, allocations: 79.8 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.3432, allocations: 7.938 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.3433, allocations: 19.91 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.3435, allocations: 60.22 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3435, allocations: 4 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3435, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.3435, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 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.0003766/0.3439, allocations: 351.4 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3439, allocations: 12.03 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.344, allocations: 8.844 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.3441, allocations: 172.2 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.3442, allocations: 4.375 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.3442, allocations: 8.375 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.3443, allocations: 57.8 kB / 1.074 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.3444, allocations: 0 / 1.074 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.3444, allocations: 4 kB / 1.074 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3444, allocations: 4 kB / 1.074 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.639e-05/0.3445, allocations: 19.97 kB / 1.074 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001656/0.3446, allocations: 157.7 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.402e-05/0.3447, allocations: 58.44 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.279e-05/0.3448, allocations: 24.84 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007124/0.3455, allocations: 0.5909 MB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3455, allocations: 34.56 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.3455, allocations: 0 / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006034/0.3461, allocations: 306.2 kB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.3462, allocations: 55.34 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.713e-05/0.3463, allocations: 97.86 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.3463, allocations: 29.7 kB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.403e-05/0.3463, allocations: 84.05 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.3464, allocations: 31.55 kB / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.3464, allocations: 29.7 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3465, allocations: 318.8 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.895e-05/0.3466, allocations: 15.94 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.277e-05/0.3466, allocations: 53.14 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.013e-05/0.3467, allocations: 77.25 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3468, allocations: 4 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001372/0.3469, allocations: 93.55 kB / 1.076 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3469, allocations: 5.406 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3469, allocations: 4 kB / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.3469, allocations: 0 / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.272e-05/0.347, allocations: 23.92 kB / 1.076 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.347, allocations: 4.125 kB / 1.076 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.886e-05/0.3471, allocations: 7.938 kB / 1.076 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.3471, allocations: 4 kB / 1.076 GB, free: 2.414 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 8.017e-05/0.3472, allocations: 119.5 kB / 1.076 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.3472, allocations: 7.906 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.3473, allocations: 7.969 kB / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3473, allocations: 0 / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3473, allocations: 0 / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3473, allocations: 3.938 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.3475, allocations: 182.2 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3475, allocations: 0 / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.548e-05/0.3476, allocations: 19.98 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.3476, allocations: 4 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.3477, allocations: 0 / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3477, allocations: 0 / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3477, allocations: 0 / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001851/0.3479, allocations: 175.4 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.363e-05/0.3479, allocations: 84.95 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.348, allocations: 16.03 kB / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3481, allocations: 0 / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.3481, allocations: 4 kB / 1.076 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.3481, allocations: 7.875 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.268e-05/0.3482, allocations: 87.27 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3482, allocations: 0 / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002632/0.3484, allocations: 12 kB / 1.076 GB, free: 1.605 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.0001405/0.3486, allocations: 103.8 kB / 1.076 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.3487, allocations: 48.23 kB / 1.076 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3487, allocations: 0 / 1.076 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.69e-05/0.3487, allocations: 19.92 kB / 1.076 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.3491, allocations: 8 kB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/0.3497, allocations: 314.5 kB / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.35, allocations: 0.6846 MB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.552e-05/0.35, allocations: 7.781 kB / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.687e-05/0.3501, allocations: 11.44 kB / 1.077 GB, free: 364 kB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3501, allocations: 4 kB / 1.077 GB, free: 360 kB / 0.8262 GB Notification: Performance of Templates: time 0.00301/0.3531, allocations: 0.6169 MB / 1.078 GB, free: 15.73 MB / 0.8419 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