Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0018/0.001801, allocations: 116.8 kB / 16.37 MB, free: 6.016 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.001878/0.001878, allocations: 192.6 kB / 17.3 MB, free: 5.613 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.602/2.602, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 60.22 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3688, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002474/0.3713, allocations: 1.287 MB / 1.028 GB, free: 0.7969 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000999/0.3724, allocations: 0.625 MB / 1.029 GB, free: 176 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.057e-05/0.3724, allocations: 0 / 1.029 GB, free: 176 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.3724, allocations: 0 / 1.029 GB, free: 176 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.852e-05/0.3725, allocations: 7.922 kB / 1.029 GB, free: 168 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.373, allocations: 143.4 kB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.041e-05/0.3731, allocations: 19.92 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.3731, allocations: 4 kB / 1.029 GB, free: 0 / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.405e-05/0.3732, allocations: 15.97 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.446e-05/0.3732, allocations: 7.938 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.3733, allocations: 0 / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004775/0.3737, allocations: 343.3 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.3738, allocations: 3.984 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.797e-05/0.3738, allocations: 11.94 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.3741, allocations: 147.6 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3741, allocations: 4 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.824e-06/0.3741, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.3741, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 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.000419/0.3745, allocations: 359.5 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3745, allocations: 8.031 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.3746, allocations: 4.922 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3747, allocations: 168.3 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-06/0.3747, allocations: 384 / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.258e-05/0.3748, allocations: 4.375 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.3749, allocations: 42.19 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3749, allocations: 4.172 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3749, allocations: 7.938 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.3749, allocations: 4 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.752e-05/0.375, allocations: 11.94 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.3751, allocations: 153.7 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.3753, allocations: 46.61 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.616e-05/0.3754, allocations: 20.88 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.3754, allocations: 7.984 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3754, allocations: 34.56 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 2.435e-06/0.3755, allocations: 0 / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006189/0.3761, allocations: 310.1 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.3761, allocations: 55.39 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.91e-05/0.3762, allocations: 93.86 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.3762, allocations: 29.7 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.3763, allocations: 84.14 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.3763, allocations: 19.7 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.3763, allocations: 21.72 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3765, allocations: 314.8 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.908e-05/0.3765, allocations: 15.98 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.886e-05/0.3765, allocations: 4 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.796e-05/0.3766, allocations: 40.94 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3766, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.454e-05/0.3767, allocations: 65.67 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3767, allocations: 11.94 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.3767, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3767, allocations: 4 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.169e-05/0.3768, allocations: 11.98 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3768, allocations: 0 / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.3768, allocations: 4 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3768, allocations: 4 kB / 1.031 GB, free: 13.28 MB / 0.8106 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 8.026e-05/0.3769, allocations: 109.8 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.3769, allocations: 11.84 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.3771, allocations: 81.7 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3771, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3771, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3771, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.3774, allocations: 319.3 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3774, allocations: 0.5156 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.3775, allocations: 11.98 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3775, allocations: 0 / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.3775, allocations: 4 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3775, allocations: 4.031 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3775, allocations: 0 / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.3777, allocations: 180.3 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.3778, allocations: 92.98 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.3778, allocations: 0 / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.925e-05/0.3779, allocations: 7.938 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.3779, allocations: 4.047 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3779, allocations: 8 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.301e-05/0.378, allocations: 83.28 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.378, allocations: 0 / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002393/0.3782, allocations: 19.94 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0001815/0.3784, allocations: 119.2 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001092/0.3785, allocations: 35.92 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3785, allocations: 0 / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.694e-05/0.3786, allocations: 27.92 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.3788, allocations: 4.75 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004183/0.3792, allocations: 200.4 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3795, allocations: 0.6807 MB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.25e-05/0.3796, allocations: 7.984 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.842e-05/0.3796, allocations: 11.44 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3796, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.002876/0.3825, allocations: 0.6533 MB / 1.034 GB, free: 10.48 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches