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.001781/0.001781, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002391/0.002391, allocations: 215.3 kB / 23.04 MB, free: 5.07 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.949 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 2.808/2.808, allocations: 476.7 MB / 0.7715 GB, free: 4.254 MB / 0.6231 GB " [Timeout remaining time 177] 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.00209/0.00209, allocations: 64.47 kB / 1.118 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3333, allocations: 170 MB / 1.284 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002665/0.336, allocations: 1.318 MB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3372, allocations: 0.6207 MB / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.748e-05/0.3372, allocations: 0 / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.091e-05/0.3372, allocations: 0 / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.308e-05/0.3372, allocations: 11.86 kB / 1.286 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.3378, allocations: 147.4 kB / 1.286 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.166e-05/0.3379, allocations: 35.91 kB / 1.286 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.338, allocations: 0 / 1.286 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.554e-05/0.338, allocations: 8 kB / 1.286 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.537e-05/0.3381, allocations: 19.86 kB / 1.286 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.3381, allocations: 0 / 1.286 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005605/0.3386, allocations: 351.3 kB / 1.287 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.382e-05/0.3386, allocations: 4 kB / 1.287 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.3387, allocations: 15.88 kB / 1.287 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.339, allocations: 155.1 kB / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.339, allocations: 0 / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.339, allocations: 3.938 kB / 1.287 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.339, allocations: 4 kB / 1.287 GB, free: 9.035 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.0004625/0.3394, allocations: 294 kB / 1.287 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3395, allocations: 8.031 kB / 1.287 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.487e-05/0.3395, allocations: 4.188 kB / 1.287 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.3395, allocations: 38.75 kB / 1.287 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.3396, allocations: 0.9375 kB / 1.287 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.3397, allocations: 118.4 kB / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-06/0.3397, allocations: 384 / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.3397, allocations: 12.38 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.3399, allocations: 53.98 kB / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3399, allocations: 0 / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.3399, allocations: 0 / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3399, allocations: 0 / 1.287 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.166e-05/0.3399, allocations: 19.98 kB / 1.287 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001961/0.3401, allocations: 140.7 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.3403, allocations: 62.48 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.422e-05/0.3403, allocations: 28.86 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.3403, allocations: 4 kB / 1.288 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.3404, allocations: 38.48 kB / 1.288 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.3404, allocations: 0 / 1.288 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001173/0.3415, allocations: 443.8 kB / 1.288 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.3416, allocations: 51.41 kB / 1.288 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.149e-05/0.3417, allocations: 101.9 kB / 1.288 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3417, allocations: 29.64 kB / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.204e-05/0.3417, allocations: 84.14 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.944e-05/0.3418, allocations: 43.64 kB / 1.288 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.3418, allocations: 25.72 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.342, allocations: 322.9 kB / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.55e-05/0.342, allocations: 20 kB / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.441e-05/0.3421, allocations: 23.98 kB / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.3422, allocations: 63.97 kB / 1.289 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.3422, allocations: 0 / 1.289 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001678/0.3424, allocations: 97.52 kB / 1.289 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3424, allocations: 4 kB / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3424, allocations: 0 / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3424, allocations: 4 kB / 1.289 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3425, allocations: 31.92 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.3425, allocations: 0 / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.699e-05/0.3425, allocations: 4 kB / 1.289 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.3426, allocations: 4 kB / 1.289 GB, free: 6.66 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.0001129/0.3427, allocations: 117.8 kB / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.719e-05/0.3427, allocations: 4 kB / 1.289 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.3429, allocations: 109.7 kB / 1.289 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3429, allocations: 0 / 1.289 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.343, allocations: 4 kB / 1.289 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.343, allocations: 4 kB / 1.289 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.3435, allocations: 321.5 kB / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3435, allocations: 0 / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.3436, allocations: 27.92 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3436, allocations: 0 / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3436, allocations: 4 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3436, allocations: 0 / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3436, allocations: 0 / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/0.344, allocations: 227.6 kB / 1.29 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.539e-05/0.344, allocations: 11.97 kB / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.344, allocations: 0 / 1.29 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.35e-05/0.3441, allocations: 3.984 kB / 1.29 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.3441, allocations: 11.98 kB / 1.29 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3441, allocations: 4 kB / 1.29 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.469e-05/0.3442, allocations: 75.28 kB / 1.29 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3442, allocations: 7.875 kB / 1.29 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003071/0.3445, allocations: 39.97 kB / 1.29 GB, free: 5.625 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.000719/0.3452, allocations: 0.7826 MB / 1.291 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.3454, allocations: 59.91 kB / 1.291 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3454, allocations: 0 / 1.291 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.256e-05/0.3454, allocations: 31.92 kB / 1.291 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.3457, allocations: 14.41 kB / 1.291 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.3474, allocations: 1.502 MB / 1.292 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.3478, allocations: 0.6885 MB / 1.293 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.454e-05/0.3478, allocations: 12 kB / 1.293 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.3479, allocations: 19.42 kB / 1.293 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.3479, allocations: 0 / 1.293 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.3736, allocations: 2.237 MB / 1.295 GB, free: 348 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.22, allocations: 8.547 kB / 1.295 GB, free: 340 kB / 0.9825 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: 18.94985464401543]