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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008525/0.000853, allocations: 98.88 kB / 16.02 MB, free: 76 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.00106/0.00106, allocations: 182.1 kB / 16.92 MB, free: 6.918 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.364/1.364, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.598/2.598, allocations: 443.2 MB / 0.7181 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 9.562 kB / 0.8801 GB, free: 42.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2489, allocations: 155.2 MB / 1.032 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001186/0.2502, allocations: 0.9947 MB / 1.033 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003463/0.2536, allocations: 3.202 MB / 1.036 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.2537, allocations: 0 / 1.036 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.2537, allocations: 3.984 kB / 1.036 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.521e-05/0.2538, allocations: 7.922 kB / 1.036 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.2542, allocations: 91.61 kB / 1.036 GB, free: 412 kB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.617e-05/0.2542, allocations: 35.92 kB / 1.036 GB, free: 376 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 2.689e-05/0.2543, allocations: 0 / 1.036 GB, free: 376 kB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.246e-05/0.2543, allocations: 27.91 kB / 1.036 GB, free: 348 kB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.2544, allocations: 15.92 kB / 1.036 GB, free: 332 kB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.2544, allocations: 4 kB / 1.036 GB, free: 328 kB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.2546, allocations: 71.8 kB / 1.036 GB, free: 256 kB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.2546, allocations: 4 kB / 1.036 GB, free: 252 kB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.795e-05/0.2547, allocations: 45.62 kB / 1.036 GB, free: 200 kB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.2548, allocations: 56.08 kB / 1.036 GB, free: 144 kB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.2548, allocations: 0 / 1.036 GB, free: 144 kB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2548, allocations: 0 / 1.036 GB, free: 144 kB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.2548, allocations: 4 kB / 1.036 GB, free: 140 kB / 0.7794 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.0003368/0.2552, allocations: 331.6 kB / 1.036 GB, free: 15.77 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2552, allocations: 11.97 kB / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.816e-05/0.2553, allocations: 4.938 kB / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.2554, allocations: 164.3 kB / 1.037 GB, free: 15.55 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2554, allocations: 8.375 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.2554, allocations: 8.281 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.2556, allocations: 65.73 kB / 1.037 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.2556, allocations: 0 / 1.037 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2556, allocations: 0 / 1.037 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2556, allocations: 0 / 1.037 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.018e-05/0.2557, allocations: 23.97 kB / 1.037 GB, free: 15.44 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.2558, allocations: 157.7 kB / 1.037 GB, free: 15.24 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.356e-05/0.2559, allocations: 46.56 kB / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/0.2559, allocations: 24.78 kB / 1.037 GB, free: 15.16 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006361/0.2566, allocations: 0.5949 MB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.2566, allocations: 34.56 kB / 1.037 GB, free: 14.41 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.733e-06/0.2566, allocations: 0 / 1.037 GB, free: 14.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0005379/0.2572, allocations: 306.1 kB / 1.038 GB, free: 14.06 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.2572, allocations: 55.41 kB / 1.038 GB, free: 13.99 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.845e-05/0.2573, allocations: 97.86 kB / 1.038 GB, free: 13.89 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.2573, allocations: 25.7 kB / 1.038 GB, free: 13.86 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.2574, allocations: 88.05 kB / 1.038 GB, free: 13.77 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.2574, allocations: 31.58 kB / 1.038 GB, free: 13.73 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.2574, allocations: 13.72 kB / 1.038 GB, free: 13.71 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2575, allocations: 326.8 kB / 1.038 GB, free: 13.39 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.746e-05/0.2576, allocations: 12 kB / 1.038 GB, free: 13.38 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.081e-05/0.2576, allocations: 57.08 kB / 1.038 GB, free: 13.3 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.3e-05/0.2577, allocations: 73.25 kB / 1.039 GB, free: 13.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2577, allocations: 4 kB / 1.039 GB, free: 13.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001434/0.2579, allocations: 101.5 kB / 1.039 GB, free: 13.1 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.2579, allocations: 4 kB / 1.039 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.2579, allocations: 0 / 1.039 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.2579, allocations: 4 kB / 1.039 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.611e-05/0.258, allocations: 23.92 kB / 1.039 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.258, allocations: 4 kB / 1.039 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.68e-05/0.258, allocations: 3.938 kB / 1.039 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.2581, allocations: 12.12 kB / 1.039 GB, free: 13.05 MB / 0.795 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 7.749e-05/0.2581, allocations: 111.4 kB / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.2582, allocations: 0 / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.2582, allocations: 11.97 kB / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2582, allocations: 0 / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2582, allocations: 0 / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2582, allocations: 7.875 kB / 1.039 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.2585, allocations: 177.7 kB / 1.039 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2585, allocations: 0 / 1.039 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.612e-05/0.2586, allocations: 23.92 kB / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.2586, allocations: 4 kB / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.2586, allocations: 0 / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2586, allocations: 0 / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2586, allocations: 0 / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.2588, allocations: 171.4 kB / 1.039 GB, free: 12.48 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.2588, allocations: 85.11 kB / 1.039 GB, free: 12.38 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.2589, allocations: 3.938 kB / 1.039 GB, free: 12.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.259, allocations: 12.47 kB / 1.039 GB, free: 12.37 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/0.259, allocations: 0 / 1.039 GB, free: 12.37 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.259, allocations: 7.938 kB / 1.039 GB, free: 12.36 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.727e-05/0.259, allocations: 91.2 kB / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.259, allocations: 0 / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002328/0.2593, allocations: 8 kB / 1.039 GB, free: 12.26 MB / 0.795 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.0001098/0.2594, allocations: 103.2 kB / 1.039 GB, free: 12.15 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001033/0.2595, allocations: 44.23 kB / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.2595, allocations: 4 kB / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.137e-05/0.2595, allocations: 12 kB / 1.04 GB, free: 12.09 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.2598, allocations: 13.55 kB / 1.04 GB, free: 12.08 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005749/0.2604, allocations: 416.7 kB / 1.04 GB, free: 11.64 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.2606, allocations: 0.6848 MB / 1.041 GB, free: 10.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.2607, allocations: 15.44 kB / 1.041 GB, free: 10.91 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/0.2607, allocations: 0 / 1.041 GB, free: 10.91 MB / 0.795 GB Notification: Performance of Templates: time 0.001995/0.2627, allocations: 0.7652 MB / 1.041 GB, free: 10.14 MB / 0.795 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches