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) 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.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 192.5 kB / 16.53 MB, free: 6.664 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.537/2.537, allocations: 469.8 MB / 0.7424 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 64.98 kB / 0.9087 GB, free: 34.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2581, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00244/0.2606, allocations: 1.27 MB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000998/0.2616, allocations: 0.6089 MB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.216e-05/0.2617, allocations: 4 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.332e-05/0.2617, allocations: 0 / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.322e-05/0.2617, allocations: 3.938 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.2623, allocations: 148.4 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.687e-05/0.2623, allocations: 23.92 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.2624, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.236e-05/0.2624, allocations: 11.94 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.936e-05/0.2625, allocations: 4 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.2625, allocations: 4 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005257/0.263, allocations: 351.3 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.263, allocations: 3.938 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.263, allocations: 11.94 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.2633, allocations: 144 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.2633, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2633, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.2633, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 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.0004149/0.2638, allocations: 363.4 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.2638, allocations: 16.03 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.2638, allocations: 30.75 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.602e-05/0.2639, allocations: 4.844 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.264, allocations: 172.4 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.274e-06/0.264, allocations: 384 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.264, allocations: 8.375 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.363e-05/0.2641, allocations: 38.25 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2642, allocations: 3.938 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.2642, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2642, allocations: 4 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.812e-05/0.2642, allocations: 11.94 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.2644, allocations: 153.7 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.2646, allocations: 46.61 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.574e-05/0.2646, allocations: 16.94 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.2647, allocations: 4 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.2647, allocations: 30.56 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2647, allocations: 4 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006094/0.2653, allocations: 314.1 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.2654, allocations: 55.41 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.2654, allocations: 101.8 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.2654, allocations: 25.7 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.2655, allocations: 80.14 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.2655, allocations: 23.7 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.875e-05/0.2656, allocations: 25.7 kB / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2657, allocations: 310.8 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.614e-05/0.2657, allocations: 12 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.359e-05/0.2658, allocations: 15.92 kB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.433e-05/0.2658, allocations: 29.02 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.2658, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001139/0.2659, allocations: 81.45 kB / 1.069 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.266, allocations: 4 kB / 1.069 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.266, allocations: 0 / 1.069 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.266, allocations: 8 kB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.944e-05/0.2661, allocations: 11.94 kB / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2661, allocations: 3.984 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.2661, allocations: 0.5156 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.2661, allocations: 4 kB / 1.069 GB, free: 9.363 MB / 0.8262 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 7.472e-05/0.2662, allocations: 109.8 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.2662, allocations: 7.938 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.2663, allocations: 69.59 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2664, allocations: 4 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.2664, allocations: 7.969 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2664, allocations: 4 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.2667, allocations: 315.3 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2667, allocations: 0 / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-05/0.2668, allocations: 8 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2668, allocations: 4 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.2668, allocations: 4 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2668, allocations: 192 / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.2668, allocations: 12.02 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.267, allocations: 184.2 kB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.855e-05/0.2671, allocations: 81.09 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.2671, allocations: 4 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.124e-05/0.2672, allocations: 0 / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.465e-05/0.2672, allocations: 4 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.2672, allocations: 4.062 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.04e-05/0.2672, allocations: 87.27 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2672, allocations: 0 / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002408/0.2675, allocations: 19.94 kB / 1.069 GB, free: 8.34 MB / 0.8262 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.0005165/0.268, allocations: 0.7367 MB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001097/0.2681, allocations: 35.98 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2681, allocations: 0 / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.145e-05/0.2682, allocations: 15.94 kB / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.2684, allocations: 4 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.2696, allocations: 1.334 MB / 1.071 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.2699, allocations: 0.682 MB / 1.072 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.695e-05/0.2699, allocations: 4.312 kB / 1.072 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.27, allocations: 15.44 kB / 1.072 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.27, allocations: 4 kB / 1.072 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3807/0.6506, allocations: 1.556 MB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.99, allocations: 10.78 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB (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) 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) "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