Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_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_latest_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.001501/0.001501, allocations: 111.5 kB / 16.41 MB, free: 6.461 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.00172/0.00172, allocations: 189.5 kB / 17.35 MB, free: 5.719 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.512/2.512, allocations: 461.9 MB / 0.7354 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6632/0.6646, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002151/0.6667, allocations: 1.272 MB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009633/0.6677, allocations: 0.6227 MB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.263e-05/0.6678, allocations: 0 / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.6678, allocations: 0 / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.774e-05/0.6678, allocations: 3.938 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.6684, allocations: 147.4 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.54e-05/0.6684, allocations: 19.92 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.375e-05/0.6685, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.531e-05/0.6685, allocations: 11.94 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.027e-05/0.6686, allocations: 11.98 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.6686, allocations: 0 / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004978/0.6691, allocations: 347.3 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.011e-05/0.6691, allocations: 0 / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.287e-05/0.6692, allocations: 11.92 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.6694, allocations: 147.5 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.6694, allocations: 0 / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6694, allocations: 0 / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.6694, allocations: 0 / 1.211 GB, free: 11.03 MB / 0.9356 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.0004001/0.6698, allocations: 357.3 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.6699, allocations: 8.031 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.212e-05/0.6699, allocations: 8.844 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.67, allocations: 172.3 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.67, allocations: 384 / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.6701, allocations: 4.375 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.499e-05/0.6702, allocations: 46.19 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.6702, allocations: 192 / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.6702, allocations: 3.938 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.6702, allocations: 7.938 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.415e-05/0.6702, allocations: 4 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.6704, allocations: 161.7 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.6706, allocations: 38.61 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.49e-05/0.6706, allocations: 20.94 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.6707, allocations: 0 / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.6707, allocations: 42.5 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.222e-06/0.6707, allocations: 0 / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0005753/0.6713, allocations: 306.2 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.6713, allocations: 51.41 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.605e-05/0.6714, allocations: 106.2 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.6714, allocations: 25.7 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.6714, allocations: 80.14 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.6715, allocations: 27.64 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.6715, allocations: 25.66 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.6716, allocations: 314.8 kB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.691e-05/0.6717, allocations: 11.98 kB / 1.213 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.183e-05/0.6717, allocations: 12 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.78e-05/0.6717, allocations: 28.86 kB / 1.213 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6717, allocations: 8 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.64e-05/0.6718, allocations: 65.59 kB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.6719, allocations: 11.94 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.6719, allocations: 4 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.6719, allocations: 0 / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.309e-05/0.672, allocations: 11.98 kB / 1.213 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.672, allocations: 4 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.672, allocations: 0 / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.672, allocations: 0 / 1.213 GB, free: 8.832 MB / 0.9356 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 7.028e-05/0.6721, allocations: 113.8 kB / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.6721, allocations: 3.938 kB / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.6722, allocations: 77.8 kB / 1.213 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6722, allocations: 8 kB / 1.213 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.6723, allocations: 0 / 1.213 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.6723, allocations: 81.11 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.6723, allocations: 0 / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.491e-05/0.6724, allocations: 7.984 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.651e-05/0.6724, allocations: 3.938 kB / 1.213 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001592/0.6726, allocations: 152.8 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001921/0.6728, allocations: 250.8 kB / 1.213 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.164e-05/0.6728, allocations: 16.02 kB / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.181e-05/0.6729, allocations: 83.28 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of Backend: time 3.01e-07/0.6729, allocations: 0 / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004849/0.6733, allocations: 158.2 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005004/0.6739, allocations: 0.6336 MB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of Templates: time 0.003398/0.6773, allocations: 1.258 MB / 1.216 GB, free: 5.914 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches