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.001486/0.001487, allocations: 108 kB / 16.37 MB, free: 6.477 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.001259/0.001259, allocations: 194.7 kB / 17.31 MB, free: 5.824 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.373/1.373, 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 10.1.0-maint.10.0.x/package.mo): time 2.429/2.429, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 61.19 kB / 0.8707 GB, free: 1.41 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3683, allocations: 151.6 MB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002623/0.371, allocations: 1.284 MB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.3721, allocations: 0.6125 MB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.524e-05/0.3721, allocations: 0 / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.976e-05/0.3722, allocations: 7.875 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.171e-05/0.3722, allocations: 3.984 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.3728, allocations: 161.7 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.481e-05/0.3729, allocations: 23.92 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.441e-05/0.3729, allocations: 7.984 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.454e-05/0.3729, allocations: 8 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.008e-05/0.373, allocations: 11.92 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.373, allocations: 4 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.3735, allocations: 347.3 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.3736, allocations: 11.92 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.548e-05/0.3736, allocations: 11.94 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.3739, allocations: 151.7 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3739, allocations: 3.938 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3739, allocations: 4 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3739, allocations: 0 / 1.021 GB, free: 7.152 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.0004796/0.3744, allocations: 367.3 kB / 1.022 GB, free: 6.742 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.3744, allocations: 12.92 kB / 1.022 GB, free: 6.73 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.3745, allocations: 0.9375 kB / 1.022 GB, free: 6.73 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.3746, allocations: 168.3 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.3746, allocations: 4.375 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.3746, allocations: 4.375 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.3748, allocations: 50.25 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3748, allocations: 4.172 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3748, allocations: 7.938 kB / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3748, allocations: 0 / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.362e-05/0.3749, allocations: 23.92 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00019/0.3751, allocations: 165.6 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.3752, allocations: 62.62 kB / 1.022 GB, free: 6.148 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.398e-05/0.3753, allocations: 29 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.3753, allocations: 7.984 kB / 1.022 GB, free: 6.109 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3753, allocations: 34.56 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.3753, allocations: 0 / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.001177/0.3765, allocations: 0.5953 MB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.3766, allocations: 51.41 kB / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.118e-05/0.3766, allocations: 93.86 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.3767, allocations: 29.7 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.3767, allocations: 84.12 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.3768, allocations: 43.3 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.3768, allocations: 33.7 kB / 1.023 GB, free: 5.012 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.377, allocations: 315 kB / 1.023 GB, free: 4.695 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.061e-05/0.377, allocations: 23.98 kB / 1.023 GB, free: 4.672 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/0.377, allocations: 23.98 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.849e-05/0.3772, allocations: 52.86 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.3772, allocations: 0 / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001456/0.3773, allocations: 102.1 kB / 1.024 GB, free: 4.488 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3773, allocations: 11.92 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3773, allocations: 0 / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3774, allocations: 0 / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3775, allocations: 20 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3775, allocations: 0 / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.52e-05/0.3775, allocations: 8 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3775, allocations: 7.984 kB / 1.024 GB, free: 4.441 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 9.268e-05/0.3776, allocations: 113.8 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.3777, allocations: 7.844 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.3778, allocations: 105.6 kB / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3779, allocations: 0 / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3779, allocations: 0 / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3779, allocations: 3.984 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.3783, allocations: 354.4 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3783, allocations: 3.984 kB / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.3784, allocations: 16 kB / 1.024 GB, free: 3.773 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3784, allocations: 0 / 1.024 GB, free: 3.773 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3785, allocations: 8 kB / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3785, allocations: 96 / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3785, allocations: 3.938 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.3788, allocations: 227.7 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.484e-05/0.3788, allocations: 81.17 kB / 1.025 GB, free: 3.426 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.3788, allocations: 4 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.57e-05/0.3789, allocations: 4.031 kB / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.379, allocations: 7.984 kB / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.379, allocations: 4 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.486e-05/0.379, allocations: 79.28 kB / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.379, allocations: 0 / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002624/0.3793, allocations: 39.98 kB / 1.025 GB, free: 3.289 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.0002284/0.3795, allocations: 135.2 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001576/0.3797, allocations: 66.47 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3797, allocations: 4 kB / 1.025 GB, free: 3.078 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.597e-05/0.3797, allocations: 35.92 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.38, allocations: 8 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000555/0.3805, allocations: 292.9 kB / 1.025 GB, free: 2.723 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.3808, allocations: 0.6855 MB / 1.026 GB, free: 2.012 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.86e-05/0.3809, allocations: 4 kB / 1.026 GB, free: 2.008 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/0.3809, allocations: 19.42 kB / 1.026 GB, free: 1.992 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3809, allocations: 0 / 1.026 GB, free: 1.992 MB / 0.795 GB Notification: Performance of Templates: time 0.003262/0.3842, allocations: 0.9514 MB / 1.027 GB, free: 1.078 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 cvode -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