Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001533/0.001533, allocations: 105.2 kB / 15.99 MB, free: 6.348 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.001513/0.001513, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.425/1.425, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.732/2.732, allocations: 469.8 MB / 0.7427 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 72.06 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2888, allocations: 159.1 MB / 1.064 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002551/0.2914, allocations: 1.317 MB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004146/0.2956, allocations: 3.233 MB / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.519e-05/0.2956, allocations: 4 kB / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.74e-05/0.2957, allocations: 0 / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.996e-05/0.2958, allocations: 0 / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000551/0.2963, allocations: 95.61 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.36e-05/0.2964, allocations: 39.84 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.243e-05/0.2964, allocations: 4 kB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.615e-05/0.2965, allocations: 19.92 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.76e-05/0.2966, allocations: 15.97 kB / 1.069 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.2966, allocations: 4 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.2968, allocations: 79.75 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.2968, allocations: 4 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.893e-05/0.2969, allocations: 31.84 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.297, allocations: 40.22 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.297, allocations: 4 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.393e-06/0.297, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.2971, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8419 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.0004275/0.2975, allocations: 339.5 kB / 1.069 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2975, allocations: 12.03 kB / 1.069 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.2976, allocations: 12.83 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.2978, allocations: 172.3 kB / 1.069 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.2978, allocations: 384 / 1.069 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.2978, allocations: 4.375 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.298, allocations: 57.8 kB / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.298, allocations: 7.922 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.298, allocations: 0 / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.298, allocations: 4 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.422e-05/0.2981, allocations: 19.92 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001948/0.2983, allocations: 173.6 kB / 1.07 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.2984, allocations: 50.56 kB / 1.07 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.918e-05/0.2984, allocations: 12.86 kB / 1.07 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007556/0.2992, allocations: 0.5984 MB / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.2992, allocations: 38.5 kB / 1.07 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.2993, allocations: 4 kB / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0006064/0.2999, allocations: 298.5 kB / 1.071 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.2999, allocations: 51.41 kB / 1.071 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.3, allocations: 101.8 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.3, allocations: 25.7 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.3001, allocations: 96.05 kB / 1.071 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.3001, allocations: 27.55 kB / 1.071 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.3002, allocations: 21.72 kB / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3003, allocations: 322.8 kB / 1.071 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.009e-05/0.3004, allocations: 15.98 kB / 1.071 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.75e-05/0.3004, allocations: 49.14 kB / 1.071 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.397e-05/0.3005, allocations: 73.03 kB / 1.071 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3005, allocations: 0 / 1.071 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001431/0.3007, allocations: 93.67 kB / 1.071 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3007, allocations: 14.5 kB / 1.071 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3007, allocations: 0 / 1.071 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3008, allocations: 4 kB / 1.071 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.911e-05/0.3008, allocations: 19.98 kB / 1.072 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.3009, allocations: 4.062 kB / 1.072 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.3009, allocations: 7.938 kB / 1.072 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.3009, allocations: 4 kB / 1.072 GB, free: 7.105 MB / 0.8419 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.036e-05/0.301, allocations: 119.1 kB / 1.072 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.301, allocations: 7.891 kB / 1.072 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/0.3011, allocations: 16.25 kB / 1.072 GB, free: 6.957 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3011, allocations: 3.938 kB / 1.072 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3011, allocations: 0 / 1.072 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3011, allocations: 7.922 kB / 1.072 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.3014, allocations: 173.7 kB / 1.072 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3014, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.845e-05/0.3015, allocations: 12.44 kB / 1.072 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3015, allocations: 4 kB / 1.072 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3015, allocations: 3.984 kB / 1.072 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3015, allocations: 7.938 kB / 1.072 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3015, allocations: 4 kB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.3017, allocations: 171.4 kB / 1.072 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.3018, allocations: 93.05 kB / 1.072 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.3018, allocations: 0 / 1.072 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.3019, allocations: 4 kB / 1.072 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.079e-05/0.302, allocations: 3.984 kB / 1.072 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-06/0.302, allocations: 7.938 kB / 1.072 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.599e-05/0.302, allocations: 87.28 kB / 1.072 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3021, allocations: 0 / 1.072 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002434/0.3023, allocations: 8 kB / 1.072 GB, free: 6.293 MB / 0.8419 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.0001459/0.3025, allocations: 103.2 kB / 1.072 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000124/0.3026, allocations: 47.84 kB / 1.072 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3026, allocations: 4 kB / 1.072 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.418e-05/0.3026, allocations: 8.25 kB / 1.072 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3029, allocations: 12.22 kB / 1.072 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006478/0.3036, allocations: 356.1 kB / 1.073 GB, free: 5.73 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.3039, allocations: 0.6807 MB / 1.073 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.397e-05/0.3039, allocations: 11.44 kB / 1.073 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.3039, allocations: 0 / 1.073 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of Templates: time 0.002421/0.3064, allocations: 0.7927 MB / 1.074 GB, free: 4.219 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches