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.006191/0.006191, allocations: 101.7 kB / 15.88 MB, free: 6.328 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.001421/0.001421, allocations: 193.4 kB / 16.79 MB, free: 6.254 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.622/2.622, allocations: 461.9 MB / 0.7348 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 61.75 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3073, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002532/0.3099, allocations: 1.323 MB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00406/0.314, allocations: 3.249 MB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.309e-05/0.314, allocations: 0 / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.089e-05/0.3141, allocations: 0 / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.558e-05/0.3141, allocations: 3.938 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.3147, allocations: 95.59 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.539e-05/0.3148, allocations: 39.91 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.372e-05/0.3148, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.637e-05/0.3148, allocations: 23.92 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.68e-05/0.3149, allocations: 15.92 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.3149, allocations: 7.938 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.3152, allocations: 75.75 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2e-05/0.3152, allocations: 11.97 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.3152, allocations: 15.94 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.3155, allocations: 40.22 kB / 1.058 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3155, allocations: 0 / 1.058 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3155, allocations: 4 kB / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.3155, allocations: 0 / 1.058 GB, free: 3.359 MB / 0.8106 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.0004409/0.3159, allocations: 347.5 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.316, allocations: 15.97 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.3161, allocations: 4.938 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.3162, allocations: 168.2 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.3162, allocations: 4.375 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.3163, allocations: 4.375 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.3164, allocations: 69.72 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.3164, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3164, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.3165, allocations: 4 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.34e-05/0.3165, allocations: 15.97 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001686/0.3167, allocations: 161.7 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.3168, allocations: 50.56 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.3168, allocations: 24.78 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007154/0.3176, allocations: 0.5947 MB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3176, allocations: 38.56 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.3176, allocations: 0 / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005823/0.3182, allocations: 298.2 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.3183, allocations: 59.39 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.479e-05/0.3184, allocations: 97.86 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.3184, allocations: 29.7 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.3185, allocations: 84.05 kB / 1.06 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.3185, allocations: 27.64 kB / 1.06 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.322e-05/0.3185, allocations: 29.62 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3187, allocations: 322.8 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.746e-05/0.3187, allocations: 12 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.472e-05/0.3188, allocations: 61.02 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.705e-05/0.3189, allocations: 73.08 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.3189, allocations: 0 / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001527/0.319, allocations: 93.55 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3191, allocations: 5.719 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3191, allocations: 0 / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3191, allocations: 4.438 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.002e-05/0.3192, allocations: 23.94 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3192, allocations: 11.92 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.4e-05/0.3192, allocations: 12.06 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.3193, allocations: 7.938 kB / 1.06 GB, free: 244 kB / 0.8106 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.161e-05/0.3193, allocations: 113.8 kB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.3194, allocations: 4 kB / 1.06 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.3194, allocations: 7.969 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3194, allocations: 0 / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3194, allocations: 0 / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3194, allocations: 3.938 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.3197, allocations: 177.7 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3197, allocations: 4 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.3198, allocations: 23.92 kB / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3198, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.3199, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3199, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3199, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.3201, allocations: 175.4 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.3201, allocations: 81.02 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.3201, allocations: 4 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3203, allocations: 12.03 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.67e-05/0.3203, allocations: 4 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.3203, allocations: 3.938 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.13e-05/0.3204, allocations: 83.64 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3204, allocations: 0 / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002428/0.3206, allocations: 12 kB / 1.061 GB, free: 15.45 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.0001427/0.3208, allocations: 111.2 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001162/0.3209, allocations: 39.92 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3209, allocations: 4 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.784e-05/0.3209, allocations: 15.98 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.3212, allocations: 7.984 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006335/0.3219, allocations: 354.1 kB / 1.061 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.3222, allocations: 0.6887 MB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.3222, allocations: 11.44 kB / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of SimCode: time 4.71e-07/0.3222, allocations: 0 / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of Templates: time 0.002185/0.3244, allocations: 0.7733 MB / 1.063 GB, free: 13.38 MB / 0.8262 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