Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002465/0.002465, allocations: 219.1 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.581/1.581, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.071/3.071, allocations: 476.8 MB / 0.7715 GB, free: 3.855 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003244/0.003244, allocations: 61.92 kB / 1.118 GB, free: 39.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4127, allocations: 169.9 MB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002927/0.4156, allocations: 1.308 MB / 1.285 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.4168, allocations: 0.5507 MB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.718e-05/0.4169, allocations: 0 / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.255e-05/0.4169, allocations: 3.938 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.417, allocations: 4 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007246/0.4177, allocations: 149.6 kB / 1.286 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.096e-05/0.4178, allocations: 31.84 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.033e-05/0.4178, allocations: 9.406 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.872e-05/0.4178, allocations: 11.94 kB / 1.286 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.971e-05/0.4179, allocations: 15.92 kB / 1.286 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.4179, allocations: 0 / 1.286 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.4184, allocations: 287.5 kB / 1.286 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.4184, allocations: 0 / 1.286 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.4185, allocations: 19.92 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.4188, allocations: 147 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.4188, allocations: 4 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.244e-06/0.4188, allocations: 0 / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.4188, allocations: 0 / 1.287 GB, free: 8.117 MB / 0.9825 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.0005066/0.4193, allocations: 298 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.4194, allocations: 8.031 kB / 1.287 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.75e-05/0.4194, allocations: 4.188 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.4194, allocations: 30.75 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.4195, allocations: 4.938 kB / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.4196, allocations: 118.5 kB / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.4196, allocations: 384 / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.4196, allocations: 4.375 kB / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.4198, allocations: 109.3 kB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.4198, allocations: 0 / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.4198, allocations: 4 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.4198, allocations: 4 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.857e-05/0.4199, allocations: 15.98 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.4201, allocations: 144.7 kB / 1.287 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.4203, allocations: 50.56 kB / 1.287 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.084e-05/0.4203, allocations: 32.78 kB / 1.287 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.4203, allocations: 7.938 kB / 1.287 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.4204, allocations: 38.5 kB / 1.287 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.4204, allocations: 0 / 1.287 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001308/0.4217, allocations: 455.9 kB / 1.288 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.4217, allocations: 51.41 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.667e-05/0.4218, allocations: 97.86 kB / 1.288 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4218, allocations: 25.7 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.4219, allocations: 80.14 kB / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.4219, allocations: 43.64 kB / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.196e-05/0.422, allocations: 29.7 kB / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.4222, allocations: 314.8 kB / 1.288 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.4222, allocations: 28.11 kB / 1.288 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.697e-05/0.4223, allocations: 23.98 kB / 1.288 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.4224, allocations: 66.36 kB / 1.289 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.4224, allocations: 0 / 1.289 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001746/0.4226, allocations: 89.62 kB / 1.289 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4226, allocations: 4 kB / 1.289 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4226, allocations: 0 / 1.289 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4226, allocations: 4 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.4227, allocations: 19.98 kB / 1.289 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.4227, allocations: 0 / 1.289 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.4228, allocations: 4 kB / 1.289 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.4228, allocations: 8 kB / 1.289 GB, free: 5.688 MB / 0.9825 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.0001166/0.4229, allocations: 127 kB / 1.289 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.4229, allocations: 7.953 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.4231, allocations: 101.8 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4231, allocations: 0 / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4231, allocations: 8 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4231, allocations: 3.938 kB / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.4237, allocations: 317.5 kB / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4237, allocations: 0 / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.4238, allocations: 23.98 kB / 1.289 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4238, allocations: 4 kB / 1.289 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.4238, allocations: 0 / 1.289 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4238, allocations: 0 / 1.289 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4238, allocations: 4 kB / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.4241, allocations: 227.3 kB / 1.289 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.4241, allocations: 7.984 kB / 1.289 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.4242, allocations: 4 kB / 1.289 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.991e-05/0.4242, allocations: 4 kB / 1.289 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.05e-05/0.4243, allocations: 3.984 kB / 1.289 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4243, allocations: 8 kB / 1.289 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.483e-05/0.4243, allocations: 83.34 kB / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4243, allocations: 0 / 1.29 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003006/0.4246, allocations: 39.81 kB / 1.29 GB, free: 4.652 MB / 0.9825 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.0007875/0.4254, allocations: 0.7779 MB / 1.29 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001678/0.4256, allocations: 52.09 kB / 1.29 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4256, allocations: 3.938 kB / 1.29 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.008e-05/0.4256, allocations: 35.92 kB / 1.29 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.4259, allocations: 6.812 kB / 1.29 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.4277, allocations: 1.52 MB / 1.292 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.936e-05/0.4278, allocations: 67.34 kB / 1.292 GB, free: 2.074 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.057e-05/0.4279, allocations: 11.98 kB / 1.292 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.473e-05/0.4279, allocations: 23.5 kB / 1.292 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of SimCode: time 8.72e-07/0.4279, allocations: 0 / 1.292 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.455, allocations: 2.238 MB / 1.294 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.44, allocations: 15.12 kB / 1.294 GB, free: 15.97 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 19.89213212300092]