Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 107.9 kB / 16.41 MB, free: 6.465 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.001612/0.001612, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.322/1.322, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.566/2.566, allocations: 472.7 MB / 0.746 GB, free: 436 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 1.07 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6857/0.687, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002546/0.6896, allocations: 1.468 MB / 1.228 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.6907, allocations: 0.6355 MB / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.929e-05/0.6907, allocations: 0 / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.074e-05/0.6907, allocations: 4 kB / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.566e-05/0.6908, allocations: 7.875 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006448/0.6915, allocations: 166.1 kB / 1.229 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.76e-05/0.6916, allocations: 43.91 kB / 1.229 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.512e-05/0.6916, allocations: 11.98 kB / 1.229 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.109e-05/0.6917, allocations: 23.94 kB / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.6e-05/0.6917, allocations: 27.84 kB / 1.229 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.6918, allocations: 4 kB / 1.229 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005131/0.6923, allocations: 347.3 kB / 1.229 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.6923, allocations: 12 kB / 1.229 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.6924, allocations: 27.84 kB / 1.229 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.6927, allocations: 176 kB / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.6927, allocations: 4 kB / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.263e-06/0.6927, allocations: 0 / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.6927, allocations: 0 / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005719/0.6933, allocations: 402.9 kB / 1.23 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.6933, allocations: 8.031 kB / 1.23 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.6934, allocations: 4.938 kB / 1.23 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.6935, allocations: 176.2 kB / 1.23 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.6935, allocations: 8.375 kB / 1.23 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.6936, allocations: 12.31 kB / 1.23 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.6938, allocations: 82.22 kB / 1.23 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.6938, allocations: 4.188 kB / 1.23 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.6938, allocations: 3.938 kB / 1.23 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.6938, allocations: 0 / 1.23 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.6941, allocations: 47.95 kB / 1.23 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.6946, allocations: 328.6 kB / 1.23 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.6949, allocations: 82.53 kB / 1.23 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.695, allocations: 28.78 kB / 1.23 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.695, allocations: 8.125 kB / 1.23 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.6951, allocations: 42.55 kB / 1.23 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.6951, allocations: 0 / 1.23 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001591/0.6967, allocations: 0.6461 MB / 1.231 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.6967, allocations: 59.41 kB / 1.231 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.318e-05/0.6968, allocations: 97.86 kB / 1.231 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.6968, allocations: 25.7 kB / 1.231 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.6969, allocations: 104 kB / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.6969, allocations: 39.64 kB / 1.231 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.48e-05/0.697, allocations: 25.72 kB / 1.231 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.6971, allocations: 326.8 kB / 1.232 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.6972, allocations: 23.98 kB / 1.232 GB, free: 7.719 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.6974, allocations: 39.97 kB / 1.232 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.6976, allocations: 79.77 kB / 1.232 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.6976, allocations: 0 / 1.232 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003082/0.6979, allocations: 113.7 kB / 1.232 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.6979, allocations: 4 kB / 1.232 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.698, allocations: 0 / 1.232 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.698, allocations: 8 kB / 1.232 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.6981, allocations: 27.98 kB / 1.232 GB, free: 7.445 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.6981, allocations: 0 / 1.232 GB, free: 7.445 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.505e-05/0.6982, allocations: 11.92 kB / 1.232 GB, free: 7.434 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.6982, allocations: 4 kB / 1.232 GB, free: 7.43 MB / 0.9512 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 (13): * Single equations (assignments): 13 * 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.855e-05/0.6983, allocations: 118.3 kB / 1.232 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.6984, allocations: 4 kB / 1.232 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.6987, allocations: 133.5 kB / 1.232 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.6987, allocations: 0 / 1.232 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6987, allocations: 0 / 1.232 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.6988, allocations: 85 kB / 1.232 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.6988, allocations: 0 / 1.232 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.6989, allocations: 12.08 kB / 1.232 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.699, allocations: 7.875 kB / 1.232 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004071/0.6994, allocations: 204.8 kB / 1.233 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005065/0.6999, allocations: 322.6 kB / 1.233 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001347/0.7, allocations: 47.94 kB / 1.233 GB, free: 6.453 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.695e-05/0.7001, allocations: 75.28 kB / 1.233 GB, free: 6.379 MB / 0.9512 GB Notification: Performance of Backend: time 3.41e-07/0.7001, allocations: 4.062 kB / 1.233 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000623/0.7007, allocations: 203.7 kB / 1.233 GB, free: 6.172 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0006731/0.7014, allocations: 0.7321 MB / 1.234 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of Templates: time 0.00424/0.7056, allocations: 1.753 MB / 1.236 GB, free: 3.676 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches