Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_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_9_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_9_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.008259/0.008259, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.002632/0.002632, allocations: 191.2 kB / 16.67 MB, free: 5.98 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 58.44 kB / 0.9508 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2852, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002245/0.2875, allocations: 1.463 MB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009816/0.2885, allocations: 0.6358 MB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.2886, allocations: 4 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.2886, allocations: 7.922 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.659e-05/0.2887, allocations: 11.88 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.2892, allocations: 159.3 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.2893, allocations: 47.66 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.251e-05/0.2894, allocations: 4 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.19e-05/0.2894, allocations: 27.91 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.2895, allocations: 31.86 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2895, allocations: 4 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004596/0.29, allocations: 347.3 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.29, allocations: 7.984 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.158e-05/0.29, allocations: 27.86 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.2903, allocations: 179.5 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2903, allocations: 4 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2903, allocations: 0 / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.2903, allocations: 0 / 1.091 GB, free: 14.52 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005361/0.2909, allocations: 399.3 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.2909, allocations: 8.031 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.291, allocations: 4.938 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.2911, allocations: 168.2 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.2911, allocations: 8.375 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.2911, allocations: 8.312 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.2913, allocations: 80.33 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2914, allocations: 4.188 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2914, allocations: 15.88 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2914, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002129/0.2916, allocations: 51.95 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.2921, allocations: 324.6 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.2924, allocations: 90.53 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.2925, allocations: 24.84 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.2925, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.2926, allocations: 38.5 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.2926, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001502/0.2941, allocations: 0.6462 MB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2941, allocations: 55.41 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.2942, allocations: 105.8 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2942, allocations: 33.7 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.2943, allocations: 88.05 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.2943, allocations: 43.39 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.2944, allocations: 29.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.2945, allocations: 314.8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2946, allocations: 31.97 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.2947, allocations: 31.98 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.2949, allocations: 72.83 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2949, allocations: 3.938 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002853/0.2952, allocations: 121.6 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2953, allocations: 4 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2953, allocations: 0 / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.2953, allocations: 7.984 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2954, allocations: 23.98 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2955, allocations: 4 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.953e-05/0.2955, allocations: 11.94 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2955, allocations: 4 kB / 1.094 GB, free: 11.4 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 (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.46e-05/0.2956, allocations: 117.8 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.2957, allocations: 4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.296, allocations: 125.5 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.296, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.296, allocations: 4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.296, allocations: 3.938 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005133/0.2966, allocations: 398.5 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2966, allocations: 0 / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.2967, allocations: 23.98 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2967, allocations: 0 / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.2967, allocations: 8.031 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2967, allocations: 7.922 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2968, allocations: 4 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004424/0.2972, allocations: 243.4 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.2973, allocations: 81.02 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.2973, allocations: 11.91 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.2974, allocations: 8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.864e-05/0.2974, allocations: 12.05 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-06/0.2974, allocations: 4 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.033e-05/0.2975, allocations: 87.27 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2975, allocations: 0 / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002663/0.2978, allocations: 32 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (11): * Single equations (assignments): 11 * 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.0001957/0.298, allocations: 143.1 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002926/0.2983, allocations: 79.89 kB / 1.095 GB, free: 9.914 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2983, allocations: 8 kB / 1.095 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.2984, allocations: 43.91 kB / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.2987, allocations: 13.72 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005888/0.2993, allocations: 309.7 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.2995, allocations: 0.6967 MB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.055e-05/0.2996, allocations: 8.672 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.2996, allocations: 15.42 kB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2996, allocations: 4 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.003295/0.3029, allocations: 1.137 MB / 1.097 GB, free: 7.672 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches