Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 114.3 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.00155/0.00155, allocations: 194.7 kB / 17.31 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.366/1.366, 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 10.1.0-maint.10.0.x/package.mo): time 2.371/2.371, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 62.81 kB / 0.8707 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2745, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002203/0.2767, allocations: 1.288 MB / 1.02 GB, free: 8.551 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009404/0.2777, allocations: 0.6203 MB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.442e-05/0.2777, allocations: 0 / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.2777, allocations: 7.875 kB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.181e-05/0.2778, allocations: 0 / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/0.2783, allocations: 153.3 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.956e-05/0.2784, allocations: 27.92 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.2784, allocations: 7.922 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.371e-05/0.2784, allocations: 12 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.2785, allocations: 19.91 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.2785, allocations: 0 / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004511/0.279, allocations: 339.4 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.451e-05/0.279, allocations: 7.938 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.279, allocations: 15.92 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000237/0.2793, allocations: 147.7 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2793, allocations: 3.938 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2793, allocations: 4 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.2793, allocations: 3.938 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003981/0.2797, allocations: 371.3 kB / 1.022 GB, free: 6.781 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2797, allocations: 8.625 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.2798, allocations: 4.938 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.2799, allocations: 172.2 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.2799, allocations: 384 / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.2799, allocations: 8.375 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.2801, allocations: 54.23 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2801, allocations: 192 / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.2801, allocations: 3.938 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.2801, allocations: 4 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.959e-05/0.2802, allocations: 15.98 kB / 1.022 GB, free: 6.473 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001663/0.2803, allocations: 165.6 kB / 1.022 GB, free: 6.262 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.2804, allocations: 66.48 kB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.237e-05/0.2805, allocations: 28.86 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.2805, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.2805, allocations: 38.55 kB / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.2805, allocations: 0 / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.001085/0.2816, allocations: 0.5801 MB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.2817, allocations: 59.39 kB / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.895e-05/0.2817, allocations: 93.86 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.2818, allocations: 29.7 kB / 1.023 GB, free: 5.23 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.544e-05/0.2818, allocations: 80.14 kB / 1.023 GB, free: 5.148 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/0.2818, allocations: 47.3 kB / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.2819, allocations: 25.72 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.282, allocations: 318.9 kB / 1.023 GB, free: 4.75 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.913e-05/0.282, allocations: 27.98 kB / 1.023 GB, free: 4.723 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.359e-05/0.2821, allocations: 20 kB / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.438e-05/0.2822, allocations: 63.72 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.2822, allocations: 0 / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001371/0.2823, allocations: 89.72 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2824, allocations: 15.88 kB / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2824, allocations: 0 / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2824, allocations: 0 / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.2825, allocations: 27.92 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.2825, allocations: 7.984 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.2825, allocations: 4 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.2825, allocations: 0 / 1.024 GB, free: 4.492 MB / 0.795 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 7.359e-05/0.2826, allocations: 114.5 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.2826, allocations: 11.84 kB / 1.024 GB, free: 4.359 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.2828, allocations: 105.6 kB / 1.024 GB, free: 4.246 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2828, allocations: 8 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2829, allocations: 0 / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2829, allocations: 0 / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003703/0.2832, allocations: 354.5 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2833, allocations: 0 / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2834, allocations: 27.92 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2834, allocations: 0 / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.2834, allocations: 4 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2834, allocations: 4 kB / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2834, allocations: 0 / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.2837, allocations: 215.3 kB / 1.025 GB, free: 3.574 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.2837, allocations: 89.19 kB / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.2837, allocations: 0 / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.2838, allocations: 0 / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.2838, allocations: 11.98 kB / 1.025 GB, free: 3.457 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.2839, allocations: 4 kB / 1.025 GB, free: 3.453 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.162e-05/0.2839, allocations: 75.28 kB / 1.025 GB, free: 3.379 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2839, allocations: 7.938 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002595/0.2842, allocations: 36 kB / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.0001935/0.2844, allocations: 135.2 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001388/0.2845, allocations: 59.92 kB / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2845, allocations: 0 / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.963e-05/0.2846, allocations: 40.3 kB / 1.025 GB, free: 3.094 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.2848, allocations: 4 kB / 1.025 GB, free: 3.09 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.2853, allocations: 298.7 kB / 1.025 GB, free: 2.773 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.2855, allocations: 0.6894 MB / 1.026 GB, free: 2.059 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.849e-05/0.2856, allocations: 7.938 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.257e-05/0.2856, allocations: 11.44 kB / 1.026 GB, free: 2.043 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.2856, allocations: 0 / 1.026 GB, free: 2.043 MB / 0.795 GB Notification: Performance of Templates: time 0.002991/0.2886, allocations: 0.9462 MB / 1.027 GB, free: 1.133 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time