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.001093/0.001093, allocations: 115.1 kB / 16.42 MB, free: 6.496 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.001046/0.001046, allocations: 193.6 kB / 17.35 MB, free: 5.758 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.215/2.215, allocations: 390.3 MB / 0.6655 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.89 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.686/0.6873, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002016/0.6894, allocations: 1.267 MB / 1.09 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008373/0.6902, allocations: 0.6115 MB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.6902, allocations: 0 / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.866e-05/0.6903, allocations: 5.672 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.378e-05/0.6903, allocations: 3.984 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.6908, allocations: 154.3 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.671e-05/0.6909, allocations: 14.8 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.6909, allocations: 6.703 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.408e-05/0.691, allocations: 9.281 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.498e-05/0.691, allocations: 8.844 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.691, allocations: 5.062 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005287/0.6916, allocations: 337.4 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.6916, allocations: 14.06 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.223e-05/0.6916, allocations: 9.078 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.6919, allocations: 153.3 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.6919, allocations: 0 / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6919, allocations: 1.125 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.6919, allocations: 0 / 1.091 GB, free: 3.949 MB / 0.8575 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.0003028/0.6922, allocations: 356 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.6922, allocations: 8.938 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.6923, allocations: 6.062 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.716e-05/0.6923, allocations: 170.8 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.6924, allocations: 6.75 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.6924, allocations: 10.06 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.653e-05/0.6925, allocations: 39.91 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.6925, allocations: 1.406 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.6925, allocations: 7.922 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.6925, allocations: 1.188 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.548e-05/0.6925, allocations: 7.484 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001116/0.6927, allocations: 163.6 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.6928, allocations: 46.7 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.043e-05/0.6929, allocations: 19.25 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.6929, allocations: 0.75 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.196e-05/0.6929, allocations: 31.91 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.6929, allocations: 0 / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004973/0.6934, allocations: 308.7 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.302e-05/0.6934, allocations: 53.52 kB / 1.092 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.057e-05/0.6935, allocations: 103.5 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.066e-06/0.6935, allocations: 26.52 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.336e-05/0.6935, allocations: 84.77 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.6935, allocations: 23.59 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.6936, allocations: 20.66 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.358e-05/0.6936, allocations: 313 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.669e-05/0.6936, allocations: 12.22 kB / 1.093 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.305e-05/0.6937, allocations: 16.53 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.111e-05/0.6937, allocations: 32.73 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.6937, allocations: 0.75 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.194e-05/0.6938, allocations: 67.94 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.6939, allocations: 9.562 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.6939, allocations: 0.7031 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.6939, allocations: 0.75 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.315e-05/0.6939, allocations: 11.25 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.694, allocations: 8.438 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.694, allocations: 0.9688 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.694, allocations: 2.234 kB / 1.093 GB, free: 2.016 MB / 0.8575 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.049e-05/0.694, allocations: 116.1 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.694, allocations: 10.83 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.6942, allocations: 68.48 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.6942, allocations: 0.9062 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.6942, allocations: 4.125 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/0.6942, allocations: 82.25 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.6943, allocations: 1.328 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.94e-05/0.6943, allocations: 5.469 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.937e-05/0.6943, allocations: 8.172 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001289/0.6945, allocations: 144.2 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001503/0.6946, allocations: 251.8 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.235e-05/0.6947, allocations: 15.05 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.784e-05/0.6947, allocations: 86.77 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of Backend: time 1.9e-07/0.6947, allocations: 0.75 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004789/0.6952, allocations: 165.5 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003398/0.6955, allocations: 0.6109 MB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of Templates: time 0.003524/0.6991, allocations: 1.267 MB / 1.096 GB, free: 464 kB / 0.8575 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/jenkins1/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