Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 111.9 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 225.6 MB / 249.3 MB, free: 3.188 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.494/2.494, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 67.89 kB / 1.107 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7314/0.7331, allocations: 168.7 MB / 1.271 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001939/0.7351, allocations: 1.29 MB / 1.273 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000809/0.7359, allocations: 0.6178 MB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.7359, allocations: 0 / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.7359, allocations: 1.438 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.736, allocations: 4.5 kB / 1.273 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.7364, allocations: 149.8 kB / 1.273 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.109e-05/0.7365, allocations: 20.48 kB / 1.273 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.403e-05/0.7365, allocations: 1.438 kB / 1.273 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.201e-05/0.7366, allocations: 13 kB / 1.273 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.269e-05/0.7366, allocations: 5.688 kB / 1.273 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.7366, allocations: 1.625 kB / 1.273 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000474/0.7371, allocations: 344.4 kB / 1.274 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.7371, allocations: 6.312 kB / 1.274 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.006e-05/0.7371, allocations: 12.28 kB / 1.274 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.7373, allocations: 153.3 kB / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.7373, allocations: 0 / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.532e-06/0.7374, allocations: 0 / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.7374, allocations: 1.031 kB / 1.274 GB, free: 6.156 MB / 0.9981 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.0002865/0.7376, allocations: 356 kB / 1.274 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.7377, allocations: 9.469 kB / 1.274 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.069e-05/0.7377, allocations: 36.8 kB / 1.274 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.296e-05/0.7377, allocations: 6.547 kB / 1.274 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.427e-05/0.7378, allocations: 166.9 kB / 1.274 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.7378, allocations: 5.281 kB / 1.274 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.7378, allocations: 6.188 kB / 1.274 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.268e-05/0.7379, allocations: 36.72 kB / 1.275 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.7379, allocations: 7.875 kB / 1.275 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.7379, allocations: 4.719 kB / 1.275 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.7379, allocations: 1.422 kB / 1.275 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.526e-05/0.7379, allocations: 9.391 kB / 1.275 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001006/0.738, allocations: 157.4 kB / 1.275 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.7382, allocations: 49.25 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.686e-05/0.7382, allocations: 18.5 kB / 1.275 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.7382, allocations: 3.453 kB / 1.275 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.067e-05/0.7382, allocations: 39.06 kB / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.7383, allocations: 0 / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0004608/0.7387, allocations: 308.5 kB / 1.275 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.581e-05/0.7387, allocations: 53.2 kB / 1.275 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.546e-05/0.7388, allocations: 95.58 kB / 1.275 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.805e-06/0.7388, allocations: 30.73 kB / 1.275 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 1.134e-05/0.7388, allocations: 84.12 kB / 1.275 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.7388, allocations: 20.91 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.7388, allocations: 25.27 kB / 1.275 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.064e-05/0.7389, allocations: 316.4 kB / 1.276 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.375e-05/0.7389, allocations: 16.45 kB / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.883e-05/0.7389, allocations: 6.906 kB / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.057e-05/0.739, allocations: 38.97 kB / 1.276 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.739, allocations: 0 / 1.276 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.291e-05/0.739, allocations: 67.72 kB / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.739, allocations: 5.094 kB / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7391, allocations: 0.9375 kB / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.7391, allocations: 0 / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.015e-05/0.7391, allocations: 15.92 kB / 1.276 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.7391, allocations: 1.031 kB / 1.276 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.7391, allocations: 4.844 kB / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.7391, allocations: 1.969 kB / 1.276 GB, free: 4.18 MB / 0.9981 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 3.699e-05/0.7392, allocations: 113.9 kB / 1.276 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.7392, allocations: 4.969 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.7393, allocations: 76.97 kB / 1.276 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.7393, allocations: 4.938 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.7393, allocations: 1.062 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.7393, allocations: 0 / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.7395, allocations: 324.5 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.7395, allocations: 0.6875 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.953e-05/0.7396, allocations: 11.36 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.7396, allocations: 2.406 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.7396, allocations: 0.7188 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.7396, allocations: 0.8125 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7396, allocations: 2.188 kB / 1.276 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.7397, allocations: 184.6 kB / 1.277 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/0.7397, allocations: 84.56 kB / 1.277 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.7398, allocations: 1.625 kB / 1.277 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.605e-05/0.7398, allocations: 1.75 kB / 1.277 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.7398, allocations: 4.297 kB / 1.277 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.7398, allocations: 6.484 kB / 1.277 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.737e-05/0.7399, allocations: 83.73 kB / 1.277 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7399, allocations: 0 / 1.277 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002283/0.7401, allocations: 23.5 kB / 1.277 GB, free: 3.309 MB / 0.9981 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.0003066/0.7404, allocations: 0.744 MB / 1.277 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 9.189e-05/0.7405, allocations: 27.19 kB / 1.277 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.7405, allocations: 64 / 1.277 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.703e-05/0.7405, allocations: 28.23 kB / 1.278 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.7407, allocations: 8.875 kB / 1.278 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009027/0.7416, allocations: 1.326 MB / 1.279 GB, free: 17.31 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.7419, allocations: 0.6832 MB / 1.279 GB, free: 16.62 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.641e-05/0.7419, allocations: 7.328 kB / 1.279 GB, free: 16.61 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.742, allocations: 16.59 kB / 1.28 GB, free: 16.6 MB / 1.014 GB Notification: Performance of SimCode: time 3.31e-07/0.742, allocations: 0 / 1.28 GB, free: 16.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.7662, allocations: 1.568 MB / 1.281 GB, free: 16.23 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.93/7.696, allocations: 9.062 kB / 1.281 GB, free: 16.23 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 12.89572920899991]