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.001315/0.001315, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001569/0.001569, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.094/3.094, allocations: 472.6 MB / 0.7447 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 66.58 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3488, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.00361/0.3524, allocations: 1.326 MB / 1.069 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004925/0.3574, allocations: 3.249 MB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.3575, allocations: 0 / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/0.3575, allocations: 3.984 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.809e-05/0.3576, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006268/0.3582, allocations: 91.61 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.909e-05/0.3583, allocations: 43.84 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.3584, allocations: 0 / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.429e-05/0.3584, allocations: 23.92 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.3585, allocations: 15.97 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.3585, allocations: 4 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.3588, allocations: 71.81 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.3588, allocations: 15.92 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.3589, allocations: 15.92 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.3592, allocations: 68.14 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3592, allocations: 0 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3592, allocations: 0 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.3592, allocations: 4 kB / 1.072 GB, free: 5.926 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.0004649/0.3597, allocations: 347.5 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3598, allocations: 8.031 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.3599, allocations: 12.84 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.36, allocations: 164.3 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.3601, allocations: 4.375 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/0.3601, allocations: 4.359 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001493/0.3603, allocations: 57.81 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3603, allocations: 11.97 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.3603, allocations: 0 / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3603, allocations: 0 / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.849e-05/0.3604, allocations: 23.92 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000215/0.3606, allocations: 161.7 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.941e-05/0.3607, allocations: 50.55 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.522e-05/0.3607, allocations: 20.8 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008367/0.3616, allocations: 0.6026 MB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3616, allocations: 38.48 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.3616, allocations: 0 / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006644/0.3623, allocations: 294.2 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3624, allocations: 59.41 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.07e-05/0.3624, allocations: 97.86 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.3625, allocations: 25.7 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.3625, allocations: 92.03 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.3626, allocations: 27.64 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.3626, allocations: 25.7 kB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001901/0.3628, allocations: 318.8 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.361e-05/0.3628, allocations: 19.92 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.187e-05/0.363, allocations: 49.16 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.573e-05/0.3631, allocations: 81.02 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3631, allocations: 0 / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001472/0.3632, allocations: 93.55 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3633, allocations: 4 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.3633, allocations: 4 kB / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3633, allocations: 0 / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.738e-05/0.3634, allocations: 19.98 kB / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3634, allocations: 4 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.129e-05/0.3634, allocations: 7.875 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3635, allocations: 12.12 kB / 1.075 GB, free: 2.816 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.315e-05/0.3635, allocations: 113.8 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.146e-05/0.3636, allocations: 7.906 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.3636, allocations: 7.969 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3636, allocations: 288 / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3636, allocations: 0 / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3636, allocations: 15.91 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.3639, allocations: 169.7 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3639, allocations: 3.984 kB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.2e-05/0.364, allocations: 16 kB / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.364, allocations: 448 / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.364, allocations: 0 / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.364, allocations: 0 / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.979e-05/0.3641, allocations: 11.94 kB / 1.075 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.3643, allocations: 175.5 kB / 1.075 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.3644, allocations: 89.05 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.3644, allocations: 3.938 kB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.3645, allocations: 4 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.809e-05/0.3646, allocations: 4 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.3646, allocations: 11.88 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.3646, allocations: 83.27 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3646, allocations: 0 / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002346/0.3649, allocations: 12 kB / 1.076 GB, free: 2.008 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.0001332/0.365, allocations: 103.2 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000116/0.3651, allocations: 51.86 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3651, allocations: 0 / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.592e-05/0.3652, allocations: 15.98 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.3655, allocations: 8 kB / 1.076 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006079/0.3661, allocations: 320.5 kB / 1.076 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.3664, allocations: 0.6848 MB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.9e-05/0.3664, allocations: 15.77 kB / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.3665, allocations: 11.44 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.3665, allocations: 0 / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of Templates: time 0.00289/0.3694, allocations: 0.6023 MB / 1.077 GB, free: 144 kB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches