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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009967/0.0009969, allocations: 91.92 kB / 16.02 MB, free: 80 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.001272/0.001272, allocations: 179.4 kB / 16.92 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.415/1.415, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.398/2.398, allocations: 390.9 MB / 0.667 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.000363, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6666/0.667, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001127/0.6682, allocations: 0.9869 MB / 0.9567 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003104/0.6713, allocations: 3.208 MB / 0.9598 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.11e-05/0.6714, allocations: 0 / 0.9598 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.6714, allocations: 0 / 0.9598 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.871e-05/0.6714, allocations: 5.047 kB / 0.9598 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004988/0.6719, allocations: 90.95 kB / 0.9599 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.143e-05/0.672, allocations: 45.75 kB / 0.9599 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.555e-05/0.672, allocations: 1.656 kB / 0.9599 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.276e-05/0.6721, allocations: 17.55 kB / 0.9599 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.447e-05/0.6722, allocations: 23.09 kB / 0.96 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.769e-06/0.6722, allocations: 1.25 kB / 0.96 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.6724, allocations: 69.12 kB / 0.96 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.326e-05/0.6724, allocations: 5.75 kB / 0.96 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.6725, allocations: 49.48 kB / 0.9601 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.6726, allocations: 40.17 kB / 0.9601 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.6726, allocations: 0 / 0.9601 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6726, allocations: 7.938 kB / 0.9601 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.6726, allocations: 0 / 0.9601 GB, free: 4.121 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.0002788/0.6729, allocations: 348.2 kB / 0.9605 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.6729, allocations: 9 kB / 0.9605 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.033e-05/0.673, allocations: 4.438 kB / 0.9605 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.017e-05/0.6731, allocations: 162.2 kB / 0.9606 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.6731, allocations: 10.12 kB / 0.9606 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.6731, allocations: 2.156 kB / 0.9606 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.6733, allocations: 62.95 kB / 0.9607 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.6733, allocations: 0 / 0.9607 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.6733, allocations: 1.375 kB / 0.9607 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.6733, allocations: 0 / 0.9607 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.958e-05/0.6734, allocations: 22.92 kB / 0.9607 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.6735, allocations: 169.8 kB / 0.9609 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.15e-05/0.6736, allocations: 47.19 kB / 0.9609 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.65e-05/0.6736, allocations: 21.09 kB / 0.961 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005389/0.6742, allocations: 0.5946 MB / 0.9615 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.6742, allocations: 31.94 kB / 0.9616 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.6742, allocations: 0 / 0.9616 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004936/0.6747, allocations: 304.1 kB / 0.9619 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.6747, allocations: 56.78 kB / 0.9619 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.622e-05/0.6748, allocations: 102 kB / 0.962 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.6748, allocations: 25.7 kB / 0.962 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.351e-05/0.6748, allocations: 85.42 kB / 0.9621 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.6748, allocations: 27.77 kB / 0.9621 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.6749, allocations: 16.47 kB / 0.9622 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.6749, allocations: 324.1 kB / 0.9625 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.63e-05/0.675, allocations: 12.25 kB / 0.9625 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.378e-05/0.675, allocations: 60.08 kB / 0.9625 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.595e-05/0.6751, allocations: 79.2 kB / 0.9626 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6751, allocations: 1.375 kB / 0.9626 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001298/0.6752, allocations: 101.2 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.6753, allocations: 6.875 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.6753, allocations: 1.375 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.6753, allocations: 1.375 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.346e-05/0.6754, allocations: 16.94 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.6754, allocations: 2.75 kB / 0.9627 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.865e-05/0.6754, allocations: 5.438 kB / 0.9627 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.6754, allocations: 16.12 kB / 0.9628 GB, free: 1.336 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.342e-05/0.6755, allocations: 116.5 kB / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.6755, allocations: 2.75 kB / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.6756, allocations: 9.344 kB / 0.9629 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.6756, allocations: 1.375 kB / 0.9629 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6756, allocations: 0 / 0.9629 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.6756, allocations: 3.938 kB / 0.9629 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.6758, allocations: 174.2 kB / 0.9631 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.6758, allocations: 0 / 0.9631 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.249e-05/0.6759, allocations: 25.67 kB / 0.9631 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.6759, allocations: 0 / 0.9631 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.6759, allocations: 1.375 kB / 0.9631 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.6759, allocations: 0 / 0.9631 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.6759, allocations: 0 / 0.9631 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.6761, allocations: 185.7 kB / 0.9633 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.6761, allocations: 83.86 kB / 0.9633 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.6761, allocations: 1.375 kB / 0.9633 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.6762, allocations: 5.375 kB / 0.9633 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.6762, allocations: 6.734 kB / 0.9633 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.6763, allocations: 5.312 kB / 0.9634 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.816e-05/0.6763, allocations: 82.03 kB / 0.9634 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6763, allocations: 0 / 0.9634 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002435/0.6765, allocations: 11 kB / 0.9634 GB, free: 0.6289 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 0.0001132/0.6767, allocations: 109.6 kB / 0.9635 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001061/0.6768, allocations: 45.36 kB / 0.9636 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6768, allocations: 4 kB / 0.9636 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.468e-05/0.6768, allocations: 15.31 kB / 0.9636 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.6771, allocations: 8.062 kB / 0.9636 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005451/0.6777, allocations: 419 kB / 0.964 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.6779, allocations: 0.6858 MB / 0.9647 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.678, allocations: 11.47 kB / 0.9647 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of SimCode: time 7.41e-07/0.678, allocations: 1 kB / 0.9647 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of Templates: time 0.002195/0.6802, allocations: 0.7644 MB / 0.9654 GB, free: 15.03 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches