Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, 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.00192/0.00192, allocations: 196 kB / 16.14 MB, free: 6.645 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: 222.9 MB / 239.8 MB, free: 4.594 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.511/2.511, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 67.84 kB / 0.8119 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6664/0.6682, allocations: 140.4 MB / 0.9489 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001911/0.6701, allocations: 1.337 MB / 0.9502 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007983/0.6709, allocations: 0.6214 MB / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.274e-05/0.671, allocations: 0 / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.671, allocations: 3.938 kB / 0.9508 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.664e-05/0.671, allocations: 5.172 kB / 0.9508 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.6714, allocations: 131.1 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.843e-05/0.6715, allocations: 20.33 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.6715, allocations: 2.906 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.862e-05/0.6716, allocations: 7.719 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.872e-05/0.6716, allocations: 10.89 kB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.6716, allocations: 1.5 kB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004014/0.672, allocations: 343.7 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.387e-06/0.672, allocations: 1.375 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.034e-05/0.6721, allocations: 11.84 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.6723, allocations: 150.6 kB / 0.9515 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.6723, allocations: 3.984 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.01e-07/0.6723, allocations: 4 kB / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.6723, allocations: 1.562 kB / 0.9515 GB, free: 7.273 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002798/0.6726, allocations: 358.4 kB / 0.9518 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.6726, allocations: 9.781 kB / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.6727, allocations: 2.188 kB / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.701e-05/0.6727, allocations: 169.9 kB / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.6727, allocations: 2.438 kB / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.6728, allocations: 384 / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.386e-05/0.6729, allocations: 44.59 kB / 0.9521 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.6729, allocations: 5.688 kB / 0.9521 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.6729, allocations: 7.875 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.6729, allocations: 0 / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.544e-05/0.6729, allocations: 10.72 kB / 0.9521 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.673, allocations: 159.6 kB / 0.9522 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.6732, allocations: 50.77 kB / 0.9523 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.69e-05/0.6733, allocations: 20.94 kB / 0.9523 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.6733, allocations: 4 kB / 0.9523 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.413e-05/0.6733, allocations: 31.72 kB / 0.9523 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.6733, allocations: 0 / 0.9523 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004902/0.6738, allocations: 307.5 kB / 0.9526 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.726e-05/0.6738, allocations: 52.53 kB / 0.9527 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.965e-05/0.6739, allocations: 98.45 kB / 0.9528 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.6739, allocations: 29.7 kB / 0.9528 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.267e-05/0.6739, allocations: 85.23 kB / 0.9529 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.6739, allocations: 17.91 kB / 0.9529 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.674, allocations: 23.2 kB / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.723e-05/0.674, allocations: 316 kB / 0.9532 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.495e-05/0.674, allocations: 10.59 kB / 0.9532 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.134e-05/0.6741, allocations: 14.69 kB / 0.9532 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.234e-05/0.6741, allocations: 35.58 kB / 0.9533 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-07/0.6741, allocations: 5.5 kB / 0.9533 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.356e-05/0.6742, allocations: 60.69 kB / 0.9533 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.6742, allocations: 9 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.6742, allocations: 0 / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.6743, allocations: 192 / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.903e-05/0.6743, allocations: 10.19 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.6743, allocations: 5.844 kB / 0.9534 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.6743, allocations: 4 kB / 0.9534 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-06/0.6744, allocations: 5.422 kB / 0.9534 GB, free: 5.289 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 prepare postOptimizeDAE: time 4.225e-05/0.6744, allocations: 115.2 kB / 0.9535 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.6744, allocations: 6.875 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.6745, allocations: 74.42 kB / 0.9536 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6746, allocations: 1.375 kB / 0.9536 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.6746, allocations: 3.984 kB / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.6746, allocations: 0 / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.6748, allocations: 316.3 kB / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.6748, allocations: 0 / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.938e-05/0.6749, allocations: 10.81 kB / 0.9539 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.6749, allocations: 4.031 kB / 0.9539 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.6749, allocations: 1.625 kB / 0.9539 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.6749, allocations: 9.406 kB / 0.9539 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6749, allocations: 3.984 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.675, allocations: 182.3 kB / 0.9541 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.617e-05/0.6751, allocations: 83.94 kB / 0.9542 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.6751, allocations: 5.406 kB / 0.9542 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.6752, allocations: 5.438 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.6752, allocations: 1.781 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.6752, allocations: 3.031 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.714e-05/0.6752, allocations: 80.86 kB / 0.9542 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6752, allocations: 0 / 0.9542 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002422/0.6755, allocations: 23.03 kB / 0.9543 GB, free: 4.383 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * 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 (6): * Single equations (assignments): 6 * 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.0001345/0.6756, allocations: 124.3 kB / 0.9544 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.299e-05/0.6757, allocations: 41.42 kB / 0.9544 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6757, allocations: 0 / 0.9544 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.67e-05/0.6757, allocations: 19.75 kB / 0.9544 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.676, allocations: 6.312 kB / 0.9545 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.6763, allocations: 203.6 kB / 0.9546 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.733e-05/0.6764, allocations: 0.6795 MB / 0.9553 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.86e-05/0.6764, allocations: 8 kB / 0.9553 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.6764, allocations: 14.2 kB / 0.9553 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.6765, allocations: 4 kB / 0.9553 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of Templates: time 0.002366/0.6788, allocations: 0.6057 MB / 0.9559 GB, free: 3.055 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches