Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.001615/0.001615, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001928/0.001928, allocations: 201.3 kB / 16.14 MB, free: 6.793 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.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.523/2.523, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 67.91 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5692/0.5705, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002325/0.5729, allocations: 1.339 MB / 1.018 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.5739, allocations: 0.6307 MB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.675e-05/0.574, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.901e-05/0.574, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.129e-05/0.5741, allocations: 3.938 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.5745, allocations: 127.6 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.699e-05/0.5746, allocations: 23.91 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.5746, allocations: 4 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.873e-05/0.5747, allocations: 7.938 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.821e-05/0.5747, allocations: 0 / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.5747, allocations: 4 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004787/0.5752, allocations: 347.3 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.5752, allocations: 7.938 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.5753, allocations: 4 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.5755, allocations: 149.9 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.5755, allocations: 4 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.22e-07/0.5756, allocations: 0 / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.5756, allocations: 0 / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003923/0.576, allocations: 363.4 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.576, allocations: 8.031 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.5761, allocations: 38.75 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.5761, allocations: 4.938 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.5762, allocations: 172.2 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.5762, allocations: 4.375 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.5762, allocations: 4.375 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.481e-05/0.5763, allocations: 42.19 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5764, allocations: 3.938 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.5764, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.5764, allocations: 7.938 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.5764, allocations: 8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.5766, allocations: 157.7 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.5768, allocations: 42.61 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.305e-05/0.5768, allocations: 20.94 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.5768, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.5769, allocations: 34.56 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.5769, allocations: 3.938 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005853/0.5775, allocations: 298.2 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.5775, allocations: 59.41 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.881e-05/0.5776, allocations: 102.2 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.5776, allocations: 25.7 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.5776, allocations: 80.14 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.5777, allocations: 23.66 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.5777, allocations: 21.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.5778, allocations: 314.8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.512e-05/0.5778, allocations: 8 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.309e-05/0.5779, allocations: 19.98 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.676e-05/0.5779, allocations: 32.84 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.5779, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.729e-05/0.578, allocations: 69.56 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.5781, allocations: 8 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.5781, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.5781, allocations: 192 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.625e-05/0.5781, allocations: 8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.5782, allocations: 3.938 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.116e-05/0.5782, allocations: 7.984 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.5782, allocations: 7.984 kB / 1.021 GB, free: 13.82 MB / 0.7794 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 (7): * Single equations (assignments): 7 * 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.096e-05/0.5783, allocations: 110.4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.5783, allocations: 11.84 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.5784, allocations: 77.88 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.5784, allocations: 0 / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5785, allocations: 4 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.5785, allocations: 3.984 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.5788, allocations: 319.4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5788, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.5789, allocations: 8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5789, allocations: 7.938 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.5789, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.5789, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5789, allocations: 3.984 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.5791, allocations: 184.3 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/0.5792, allocations: 85 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.5792, allocations: 4.031 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.465e-05/0.5793, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.5793, allocations: 4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.5793, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.428e-05/0.5793, allocations: 83.27 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5793, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002499/0.5796, allocations: 24 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.000488/0.5801, allocations: 0.7367 MB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.591e-05/0.5802, allocations: 32.25 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5802, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.313e-05/0.5802, allocations: 28.05 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.5805, allocations: 4 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.5816, allocations: 1.332 MB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.5819, allocations: 0.6731 MB / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.212e-05/0.5819, allocations: 7.984 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.5819, allocations: 15.44 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5819, allocations: 0 / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01066/0.5926, allocations: 1.461 MB / 1.026 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.5928, allocations: 245.8 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.32, allocations: 2.812 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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 Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time