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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005609/0.005614, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.00118/0.00118, allocations: 188.6 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.707/2.707, allocations: 437.1 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 63.91 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3573, allocations: 151.6 MB / 1.166 GB, free: 7.258 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.003261/0.3606, allocations: 1.294 MB / 1.167 GB, free: 5.949 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.3619, allocations: 0.6152 MB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.5e-05/0.362, allocations: 4 kB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.807e-05/0.3621, allocations: 3.984 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.081e-05/0.3622, allocations: 3.938 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.3631, allocations: 147.4 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.83e-05/0.3632, allocations: 31.92 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 6.817e-05/0.3633, allocations: 3.984 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.118e-05/0.3633, allocations: 11.94 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.247e-05/0.3634, allocations: 11.98 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.3634, allocations: 3.984 kB / 1.168 GB, free: 5.113 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006591/0.3641, allocations: 343.3 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.258e-05/0.3641, allocations: 7.938 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.021e-05/0.3642, allocations: 19.86 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.3646, allocations: 147.3 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.3646, allocations: 4 kB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.735e-06/0.3646, allocations: 4 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.3646, allocations: 0 / 1.169 GB, free: 4.602 MB / 0.92 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.0005953/0.3652, allocations: 367.5 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.3653, allocations: 8.031 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.086e-05/0.3654, allocations: 34.75 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.3654, allocations: 8.844 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.3656, allocations: 168.3 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.3656, allocations: 4.375 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.3656, allocations: 384 / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.3658, allocations: 62.17 kB / 1.169 GB, free: 3.859 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.3658, allocations: 3.938 kB / 1.169 GB, free: 3.855 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3658, allocations: 0 / 1.169 GB, free: 3.855 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.3658, allocations: 4 kB / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.03e-05/0.3659, allocations: 15.98 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002233/0.3661, allocations: 165.6 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.3663, allocations: 62.55 kB / 1.17 GB, free: 3.555 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.308e-05/0.3663, allocations: 32.8 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3664, allocations: 3.984 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.3664, allocations: 38.55 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.3664, allocations: 0 / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.001448/0.3679, allocations: 0.5918 MB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.3679, allocations: 51.41 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.368, allocations: 97.86 kB / 1.17 GB, free: 2.617 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3681, allocations: 25.7 kB / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.608e-05/0.3681, allocations: 80.14 kB / 1.17 GB, free: 2.504 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.3682, allocations: 39.45 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.979e-05/0.3683, allocations: 25.7 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3684, allocations: 323.1 kB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.298e-05/0.3685, allocations: 27.92 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-05/0.3685, allocations: 16 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.3686, allocations: 68.22 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3687, allocations: 0 / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001766/0.3688, allocations: 101.5 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.3689, allocations: 4 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3689, allocations: 0 / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3689, allocations: 0 / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.369, allocations: 27.98 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3691, allocations: 4 kB / 1.171 GB, free: 1.859 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.406e-05/0.3691, allocations: 8 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.3691, allocations: 4 kB / 1.171 GB, free: 1.848 MB / 0.92 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 0.0001175/0.3692, allocations: 116.6 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.494e-05/0.3693, allocations: 7.938 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.3695, allocations: 105.6 kB / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3695, allocations: 0 / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3695, allocations: 0 / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3696, allocations: 3.938 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005309/0.3701, allocations: 358.5 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3701, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.3702, allocations: 19.98 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3703, allocations: 0 / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3703, allocations: 8 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3703, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3703, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.3706, allocations: 227.2 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.3707, allocations: 85.05 kB / 1.172 GB, free: 0.8242 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.3707, allocations: 0 / 1.172 GB, free: 0.8242 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.449e-05/0.3708, allocations: 4 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.3708, allocations: 7.984 kB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.3708, allocations: 4 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.66e-05/0.3709, allocations: 79.28 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3709, allocations: 0 / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003148/0.3712, allocations: 35.94 kB / 1.172 GB, free: 0.6953 MB / 0.92 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.0007803/0.372, allocations: 0.7832 MB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001936/0.3722, allocations: 71.84 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3722, allocations: 0 / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.366e-05/0.3723, allocations: 31.98 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.3725, allocations: 7.094 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.3744, allocations: 1.518 MB / 1.174 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.3747, allocations: 0.6807 MB / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.162e-05/0.3748, allocations: 8 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.417e-05/0.3748, allocations: 27.42 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of SimCode: time 7.21e-07/0.3749, allocations: 0 / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.4005, allocations: 2.069 MB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.637, allocations: 10.86 kB / 1.177 GB, free: 11.55 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > 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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " 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(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time