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.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_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.001482/0.001482, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001796/0.001797, allocations: 189.7 kB / 16.25 MB, free: 6.633 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.918/2.918, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 66.12 kB / 0.8986 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2854, allocations: 157.4 MB / 1.052 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002768/0.2883, allocations: 1.341 MB / 1.054 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2893, allocations: 0.6111 MB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.765e-05/0.2894, allocations: 8 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.019e-05/0.2894, allocations: 0 / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.584e-05/0.2895, allocations: 3.938 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006482/0.2901, allocations: 126.7 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.304e-05/0.2902, allocations: 19.92 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.806e-05/0.2903, allocations: 7.984 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.617e-05/0.2903, allocations: 7.938 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.97e-05/0.2904, allocations: 11.94 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.2904, allocations: 4 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005142/0.2909, allocations: 347.3 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.2909, allocations: 3.984 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.545e-05/0.291, allocations: 7.938 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.2913, allocations: 144 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2913, allocations: 0 / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2913, allocations: 0 / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.2913, allocations: 4 kB / 1.055 GB, free: 6.105 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.0004744/0.2918, allocations: 371.3 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.2918, allocations: 12.62 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.2919, allocations: 0.9375 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.292, allocations: 168.3 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.292, allocations: 384 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.2921, allocations: 4.312 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.2922, allocations: 42.25 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2922, allocations: 4.172 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.2922, allocations: 3.938 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2922, allocations: 0 / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.186e-05/0.2923, allocations: 15.98 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.2924, allocations: 157.7 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.2926, allocations: 42.5 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.2927, allocations: 16.86 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2927, allocations: 4 kB / 1.056 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.2927, allocations: 38.59 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.2927, allocations: 0 / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006434/0.2934, allocations: 314.1 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.2934, allocations: 51.41 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.994e-05/0.2935, allocations: 97.86 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.2935, allocations: 25.7 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.2936, allocations: 88.12 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.2936, allocations: 15.72 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.2936, allocations: 21.72 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2937, allocations: 318.8 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.761e-05/0.2938, allocations: 12 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.125e-05/0.2938, allocations: 8 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.881e-05/0.2939, allocations: 40.77 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.2939, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001001/0.294, allocations: 65.69 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.294, allocations: 7.938 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.294, allocations: 3.938 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.294, allocations: 0 / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.63e-05/0.2941, allocations: 16 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2941, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.2941, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.2942, allocations: 4 kB / 1.057 GB, free: 3.902 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.528e-05/0.2942, allocations: 115.3 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.2943, allocations: 15.83 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.2944, allocations: 65.66 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2944, allocations: 0 / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2944, allocations: 4.125 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.2944, allocations: 4 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003469/0.2948, allocations: 315.4 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2948, allocations: 8.5 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/0.2949, allocations: 8 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2949, allocations: 0 / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.2949, allocations: 4 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2949, allocations: 3.938 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2949, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.2951, allocations: 184.3 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-05/0.2952, allocations: 89.03 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.2952, allocations: 0 / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.694e-05/0.2953, allocations: 7.984 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.711e-05/0.2953, allocations: 4 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-06/0.2953, allocations: 4 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.572e-05/0.2954, allocations: 79.34 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2954, allocations: 4 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000268/0.2957, allocations: 19.94 kB / 1.058 GB, free: 2.875 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.0001919/0.2958, allocations: 135.1 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001064/0.296, allocations: 32.22 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.296, allocations: 0 / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.976e-05/0.296, allocations: 19.94 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.2962, allocations: 3.938 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003983/0.2966, allocations: 212.6 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.2969, allocations: 0.6845 MB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.11e-05/0.2969, allocations: 8.141 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.401e-05/0.297, allocations: 15.44 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.297, allocations: 3.938 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of Templates: time 0.002754/0.2997, allocations: 0.6495 MB / 1.059 GB, free: 1.094 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 -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/jenkins/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