Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0008334/0.0008334, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006135/0.006135, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.352/2.352, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6528/0.6531, allocations: 142.4 MB / 0.955 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001248/0.6544, allocations: 0.9829 MB / 0.956 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003507/0.658, allocations: 3.206 MB / 0.9591 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.335e-05/0.658, allocations: 1.031 kB / 0.9591 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.969e-05/0.658, allocations: 3.938 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.374e-05/0.6581, allocations: 5.094 kB / 0.9591 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.6585, allocations: 94.84 kB / 0.9592 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.063e-05/0.6586, allocations: 45.88 kB / 0.9593 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.648e-05/0.6586, allocations: 1.594 kB / 0.9593 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.145e-05/0.6587, allocations: 17.61 kB / 0.9593 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.573e-05/0.6588, allocations: 13.7 kB / 0.9593 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.6588, allocations: 2.594 kB / 0.9593 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.659, allocations: 75.78 kB / 0.9594 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.659, allocations: 11.06 kB / 0.9594 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.259e-05/0.659, allocations: 40.17 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.6592, allocations: 72.78 kB / 0.9595 GB, free: 4 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6592, allocations: 5.719 kB / 0.9595 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6592, allocations: 0 / 0.9595 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.6592, allocations: 0 / 0.9595 GB, free: 3.996 MB / 0.7169 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.0002965/0.6595, allocations: 338.2 kB / 0.9598 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.6596, allocations: 9 kB / 0.9598 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.6597, allocations: 14.23 kB / 0.9598 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.501e-05/0.6597, allocations: 164.4 kB / 0.96 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.6598, allocations: 2.156 kB / 0.96 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.6598, allocations: 7.969 kB / 0.96 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.6599, allocations: 53.61 kB / 0.96 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.6599, allocations: 1.812 kB / 0.9601 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.66, allocations: 4 kB / 0.9601 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.66, allocations: 1.594 kB / 0.9601 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.716e-05/0.66, allocations: 17.14 kB / 0.9601 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.6601, allocations: 173.2 kB / 0.9602 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.628e-05/0.6602, allocations: 52.94 kB / 0.9603 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.666e-05/0.6603, allocations: 19.67 kB / 0.9603 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005396/0.6608, allocations: 0.592 MB / 0.9609 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.6608, allocations: 39.94 kB / 0.9609 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.764e-06/0.6608, allocations: 0 / 0.9609 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004962/0.6613, allocations: 298.6 kB / 0.9612 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.925e-05/0.6614, allocations: 52.78 kB / 0.9613 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.69e-05/0.6614, allocations: 97.97 kB / 0.9614 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.6614, allocations: 31.08 kB / 0.9614 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.705e-05/0.6615, allocations: 89.41 kB / 0.9615 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.6615, allocations: 34.33 kB / 0.9615 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.6615, allocations: 17.84 kB / 0.9615 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.453e-05/0.6616, allocations: 320.2 kB / 0.9618 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.568e-05/0.6616, allocations: 14.86 kB / 0.9618 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.1e-05/0.6617, allocations: 57.45 kB / 0.9619 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.149e-05/0.6617, allocations: 79.2 kB / 0.962 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.6617, allocations: 0 / 0.962 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001168/0.6619, allocations: 94.58 kB / 0.9621 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.6619, allocations: 5.5 kB / 0.9621 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.6619, allocations: 5.5 kB / 0.9621 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.6619, allocations: 2.75 kB / 0.9621 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.367e-05/0.662, allocations: 24.48 kB / 0.9621 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.662, allocations: 5.438 kB / 0.9621 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.712e-05/0.662, allocations: 6.688 kB / 0.9621 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.6621, allocations: 4.125 kB / 0.9621 GB, free: 1.211 MB / 0.7169 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 5.249e-05/0.6621, allocations: 120.5 kB / 0.9622 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.6621, allocations: 2.75 kB / 0.9622 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.6622, allocations: 13.33 kB / 0.9622 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.6622, allocations: 4 kB / 0.9622 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.6622, allocations: 1.375 kB / 0.9622 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.6622, allocations: 3.938 kB / 0.9622 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.6624, allocations: 172.8 kB / 0.9624 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.6624, allocations: 1.812 kB / 0.9624 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.153e-05/0.6625, allocations: 12.38 kB / 0.9624 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.6625, allocations: 1.375 kB / 0.9624 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.6625, allocations: 4 kB / 0.9624 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.6625, allocations: 5.359 kB / 0.9624 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6625, allocations: 0 / 0.9624 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.6627, allocations: 181.6 kB / 0.9626 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.6627, allocations: 82.52 kB / 0.9627 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.6627, allocations: 1.375 kB / 0.9627 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.6628, allocations: 6.75 kB / 0.9627 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.84e-05/0.6629, allocations: 5.359 kB / 0.9627 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.6629, allocations: 6.688 kB / 0.9627 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.884e-05/0.6629, allocations: 78.03 kB / 0.9628 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6629, allocations: 4 kB / 0.9628 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00024/0.6631, allocations: 14.66 kB / 0.9628 GB, free: 0.4961 MB / 0.7169 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 9.782e-05/0.6633, allocations: 100.7 kB / 0.9629 GB, free: 416 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001023/0.6634, allocations: 41.42 kB / 0.9629 GB, free: 400 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6634, allocations: 9.312 kB / 0.9629 GB, free: 392 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.304e-05/0.6634, allocations: 18.33 kB / 0.963 GB, free: 384 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.6637, allocations: 8.5 kB / 0.963 GB, free: 380 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005153/0.6642, allocations: 392.3 kB / 0.9633 GB, free: 28 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.6645, allocations: 0.6862 MB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.985e-05/0.6645, allocations: 11.56 kB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.599e-05/0.6646, allocations: 11.22 kB / 0.964 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.6646, allocations: 0 / 0.964 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of Templates: time 0.002611/0.6672, allocations: 0.5867 MB / 0.9646 GB, free: 15.01 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches