Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_DerivativeCheck,fileNamePrefix="Buildings_latest_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_latest_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.001974/0.001974, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.002286/0.002286, allocations: 188.1 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.885/2.885, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.992/5.992, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.004354/0.004355, allocations: 68.53 kB / 0.8987 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7203/0.7247, allocations: 157.4 MB / 1.052 GB, free: 8.68 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00581/0.7306, allocations: 1.341 MB / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.7324, allocations: 0.6189 MB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.905e-05/0.7325, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.132e-05/0.7326, allocations: 3.938 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.327e-05/0.7327, allocations: 0 / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.7339, allocations: 131.6 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.647e-05/0.734, allocations: 19.92 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.366e-05/0.734, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.168e-05/0.7341, allocations: 15.92 kB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.396e-05/0.7342, allocations: 0 / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.7342, allocations: 4 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008335/0.7351, allocations: 347.2 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.436e-05/0.7351, allocations: 8 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.7352, allocations: 7.938 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004492/0.7356, allocations: 144 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.7356, allocations: 0 / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.465e-06/0.7357, allocations: 4 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.7357, allocations: 0 / 1.055 GB, free: 6.027 MB / 0.8106 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.0007195/0.7364, allocations: 363.4 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.833e-05/0.7365, allocations: 8.031 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.726e-05/0.7366, allocations: 38.75 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.285e-05/0.7366, allocations: 0.9375 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.7369, allocations: 168.2 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.737, allocations: 4.375 kB / 1.056 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.737, allocations: 384 / 1.056 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.7373, allocations: 46.25 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.7373, allocations: 3.938 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.7373, allocations: 0 / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.7373, allocations: 0 / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.008e-05/0.7374, allocations: 11.98 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000308/0.7378, allocations: 161.7 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.7381, allocations: 46.48 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.138e-05/0.7382, allocations: 20.86 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.7383, allocations: 0 / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.7383, allocations: 34.56 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 2.305e-06/0.7383, allocations: 4 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.00108/0.7394, allocations: 306.2 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.7395, allocations: 51.41 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.743e-05/0.7396, allocations: 101.9 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.7397, allocations: 25.7 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.76e-05/0.7397, allocations: 80.14 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.962e-05/0.7398, allocations: 23.7 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-05/0.7399, allocations: 17.72 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.74, allocations: 322.8 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.576e-05/0.7401, allocations: 7.938 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.425e-05/0.7401, allocations: 12 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.7403, allocations: 44.98 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.7403, allocations: 0 / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001804/0.7405, allocations: 65.62 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.7405, allocations: 4 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.7405, allocations: 3.984 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.7406, allocations: 3.938 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.531e-05/0.7407, allocations: 15.94 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.7407, allocations: 0 / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.688e-05/0.7407, allocations: 0 / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.7407, allocations: 4.062 kB / 1.057 GB, free: 3.785 MB / 0.8106 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 0.0001232/0.7409, allocations: 115.4 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.7409, allocations: 11.84 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002267/0.7411, allocations: 73.64 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.7411, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.7412, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.7412, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006008/0.7418, allocations: 315.4 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.7418, allocations: 0 / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.7419, allocations: 20.02 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.7419, allocations: 0 / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.742, allocations: 0 / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.463e-06/0.742, allocations: 7.938 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.742, allocations: 0 / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.7423, allocations: 176.3 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.845e-05/0.7424, allocations: 88.98 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.7425, allocations: 4.062 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.7426, allocations: 4 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.7426, allocations: 8.5 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.7426, allocations: 4 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.919e-05/0.7427, allocations: 79.27 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.11e-07/0.7427, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004686/0.7432, allocations: 27.94 kB / 1.058 GB, free: 2.758 MB / 0.8106 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.0008553/0.744, allocations: 0.7368 MB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001691/0.7442, allocations: 39.98 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.7442, allocations: 0 / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.155e-05/0.7443, allocations: 19.98 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.7448, allocations: 3.938 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.747, allocations: 1.334 MB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.7476, allocations: 0.6846 MB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.098e-05/0.7476, allocations: 8.297 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.275e-05/0.7477, allocations: 11.42 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of SimCode: time 9.62e-07/0.7477, allocations: 0 / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.564/2.312, allocations: 1.504 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.06362/2.375, allocations: 251.3 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.223/6.598, allocations: 1.406 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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