Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.0009597/0.0009596, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.007682/0.007682, allocations: 170 kB / 16.26 MB, free: 6.613 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.384/1.384, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.634/2.634, allocations: 462.7 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003296, allocations: 14.44 kB / 0.9029 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2487, allocations: 159.6 MB / 1.059 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001241/0.2499, allocations: 1.014 MB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009696/0.2509, allocations: 0.6191 MB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.251, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.251, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.414e-05/0.251, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004681/0.2515, allocations: 130.3 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.821e-05/0.2516, allocations: 27.86 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.696e-05/0.2516, allocations: 0 / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.161e-05/0.2516, allocations: 7.938 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.333e-05/0.2517, allocations: 8 kB / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.2517, allocations: 7.938 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004628/0.2522, allocations: 347.3 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.2522, allocations: 0 / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.2522, allocations: 33.64 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.2525, allocations: 140 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2525, allocations: 0 / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2525, allocations: 0 / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2525, allocations: 8 kB / 1.061 GB, free: 2.484 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.0003591/0.2528, allocations: 363.3 kB / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2529, allocations: 8.031 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.2529, allocations: 30.75 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.253, allocations: 8.938 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.192e-05/0.2531, allocations: 164.3 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.2531, allocations: 4.375 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.2531, allocations: 8.359 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.148e-05/0.2532, allocations: 38.27 kB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.2532, allocations: 7.938 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.2532, allocations: 0 / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2532, allocations: 3.938 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.879e-05/0.2533, allocations: 11.92 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.2534, allocations: 161.7 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.2536, allocations: 38.61 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.508e-05/0.2536, allocations: 20.86 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.2537, allocations: 4.078 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.2537, allocations: 30.56 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.2537, allocations: 0 / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005663/0.2543, allocations: 318.1 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.2543, allocations: 55.34 kB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.249e-05/0.2544, allocations: 97.84 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2544, allocations: 33.7 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.47e-05/0.2544, allocations: 80.14 kB / 1.062 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.2545, allocations: 23.7 kB / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/0.2545, allocations: 9.719 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.813e-05/0.2546, allocations: 322.8 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/0.2546, allocations: 4 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.574e-05/0.2546, allocations: 12 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.512e-05/0.2547, allocations: 36.84 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.2547, allocations: 0 / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.694e-05/0.2548, allocations: 73.56 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2548, allocations: 5.719 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2548, allocations: 3.938 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.2548, allocations: 0 / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.103e-05/0.2549, allocations: 12 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2549, allocations: 0 / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.763e-05/0.2549, allocations: 0 / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.2549, allocations: 4 kB / 1.063 GB, free: 256 kB / 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 6.558e-05/0.255, allocations: 113.8 kB / 1.063 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.255, allocations: 11.84 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.2552, allocations: 73.59 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2552, allocations: 0 / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2552, allocations: 0 / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.2552, allocations: 3.938 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002974/0.2555, allocations: 315.4 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2555, allocations: 3.938 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-05/0.2556, allocations: 12.19 kB / 1.063 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2556, allocations: 4.031 kB / 1.063 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.2556, allocations: 4 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2556, allocations: 4 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2556, allocations: 0 / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.2558, allocations: 180.3 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.2558, allocations: 85.05 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.2559, allocations: 3.984 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.209e-05/0.2559, allocations: 8.062 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.256, allocations: 7.938 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.256, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.872e-05/0.256, allocations: 75.28 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.256, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002548/0.2563, allocations: 31.92 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0004493/0.2567, allocations: 0.725 MB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.055e-05/0.2568, allocations: 35.92 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2568, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.827e-05/0.2569, allocations: 23.92 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.2571, allocations: 3.938 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.2582, allocations: 1.356 MB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.2584, allocations: 0.6809 MB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.116e-05/0.2584, allocations: 12.09 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.2584, allocations: 15.44 kB / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.2585, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01052/0.269, allocations: 1.414 MB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.2692, allocations: 255.4 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.928, allocations: 4 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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,dp,dp_comp Variables in the result:der(dp),der(dp_comp),der(m_flow),dp,dp_comp,err,k,m_flow,m_flow_turbulent,time