Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.006799/0.006799, allocations: 104.8 kB / 15.74 MB, free: 6 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.00163/0.00163, allocations: 200 kB / 16.68 MB, free: 5.922 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 / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.67/2.67, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 67.89 kB / 1.054 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9506/0.9521, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002755/0.9549, allocations: 1.286 MB / 1.209 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.9562, allocations: 0.6189 MB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.804e-05/0.9563, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.075e-05/0.9563, allocations: 3.938 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.699e-05/0.9565, allocations: 3.984 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007961/0.9573, allocations: 151.3 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.911e-05/0.9574, allocations: 27.91 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.9574, allocations: 0 / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.424e-05/0.9575, allocations: 19.92 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.9575, allocations: 11.94 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.9576, allocations: 4 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005679/0.9581, allocations: 343.3 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.981e-05/0.9582, allocations: 7.984 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.9582, allocations: 15.94 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.9585, allocations: 153.9 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.9585, allocations: 0 / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.824e-06/0.9585, allocations: 3.938 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.9586, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 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.0004695/0.959, allocations: 367.4 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.9591, allocations: 8.031 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.009e-05/0.9591, allocations: 34.75 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.9592, allocations: 4.844 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.9593, allocations: 172.4 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.9593, allocations: 4.375 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.9594, allocations: 4.375 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.9596, allocations: 42.25 kB / 1.21 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.9596, allocations: 15.88 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.9596, allocations: 0 / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.9596, allocations: 0 / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.914e-05/0.9597, allocations: 23.92 kB / 1.21 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000207/0.9599, allocations: 173.5 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.96, allocations: 62.55 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.767e-05/0.9601, allocations: 24.86 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.9601, allocations: 4 kB / 1.211 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.9601, allocations: 34.56 kB / 1.211 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 2.524e-06/0.9601, allocations: 3.984 kB / 1.211 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001256/0.9614, allocations: 0.5918 MB / 1.211 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.9615, allocations: 55.34 kB / 1.211 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.979e-05/0.9616, allocations: 97.84 kB / 1.211 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.9616, allocations: 29.7 kB / 1.212 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.9616, allocations: 80.14 kB / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.077e-05/0.9617, allocations: 43.58 kB / 1.212 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.9617, allocations: 25.72 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.9619, allocations: 318.8 kB / 1.212 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.379e-05/0.9619, allocations: 16 kB / 1.212 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.014e-05/0.962, allocations: 27.61 kB / 1.212 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.422e-05/0.9621, allocations: 56.84 kB / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.9621, allocations: 0 / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001662/0.9622, allocations: 105.5 kB / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.9623, allocations: 5.875 kB / 1.212 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.9623, allocations: 4 kB / 1.212 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.9623, allocations: 0 / 1.212 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.9624, allocations: 23.98 kB / 1.212 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.9624, allocations: 0 / 1.212 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.872e-05/0.9625, allocations: 4 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.9625, allocations: 4 kB / 1.212 GB, free: 8.148 MB / 0.9356 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.0001021/0.9626, allocations: 113.9 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.9626, allocations: 11.81 kB / 1.212 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002152/0.9628, allocations: 109.6 kB / 1.212 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.9629, allocations: 0 / 1.212 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.9629, allocations: 0 / 1.212 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.9629, allocations: 0 / 1.212 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.9634, allocations: 362.4 kB / 1.213 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.9634, allocations: 0 / 1.213 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.9636, allocations: 19.98 kB / 1.213 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.9636, allocations: 4 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.9636, allocations: 0 / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.9636, allocations: 0 / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.9636, allocations: 7.938 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.9639, allocations: 219.6 kB / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.964, allocations: 81.02 kB / 1.213 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.964, allocations: 7.984 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.623e-05/0.9641, allocations: 8.031 kB / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.9641, allocations: 4 kB / 1.213 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.9641, allocations: 7.984 kB / 1.213 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.291e-05/0.9642, allocations: 79.34 kB / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9642, allocations: 0 / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003034/0.9645, allocations: 39.94 kB / 1.213 GB, free: 6.98 MB / 0.9356 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.0006835/0.9652, allocations: 0.7788 MB / 1.214 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001863/0.9654, allocations: 59.97 kB / 1.214 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.9654, allocations: 8.094 kB / 1.214 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.044e-05/0.9655, allocations: 35.94 kB / 1.214 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.9657, allocations: 11.92 kB / 1.214 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.9673, allocations: 1.513 MB / 1.216 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.9676, allocations: 0.6885 MB / 1.216 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.358e-05/0.9677, allocations: 12 kB / 1.216 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.9678, allocations: 15.44 kB / 1.216 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of SimCode: time 5.21e-07/0.9678, allocations: 0 / 1.216 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.9917, allocations: 2.088 MB / 1.218 GB, free: 1.824 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/9.262, allocations: 6.406 kB / 1.218 GB, free: 1.82 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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