Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.001018/0.001022, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007892/0.007893, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.376/1.376, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.607/2.607, allocations: 437.8 MB / 0.7121 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003336, allocations: 8 kB / 0.873 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5645/0.5649, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001253/0.5662, allocations: 1.012 MB / 1.024 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.5672, allocations: 0.6152 MB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.61e-05/0.5672, allocations: 0 / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.5673, allocations: 0 / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.503e-05/0.5673, allocations: 0 / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005272/0.5678, allocations: 127.5 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.054e-05/0.5679, allocations: 19.92 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.5679, allocations: 4 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.333e-05/0.568, allocations: 11.94 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.191e-05/0.568, allocations: 7.938 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.819e-06/0.568, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004886/0.5685, allocations: 351.3 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.986e-05/0.5686, allocations: 7.938 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.5686, allocations: 33.64 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.5689, allocations: 141.9 kB / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5689, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5689, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.5689, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.7794 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.0003676/0.5693, allocations: 363.4 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.5693, allocations: 12.03 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.605e-05/0.5694, allocations: 30.75 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.5694, allocations: 0.9375 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.5695, allocations: 168.3 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.5695, allocations: 4.375 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.5695, allocations: 4.359 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.467e-05/0.5696, allocations: 38.27 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.5696, allocations: 3.938 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.5697, allocations: 4 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.5697, allocations: 0 / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.959e-05/0.5697, allocations: 15.92 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.5699, allocations: 161.6 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.5701, allocations: 38.61 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.865e-05/0.5701, allocations: 16.86 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.5701, allocations: 4.078 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.5702, allocations: 42.56 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.5702, allocations: 0 / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006075/0.5708, allocations: 314.5 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.5708, allocations: 51.41 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.525e-05/0.5709, allocations: 97.84 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.5709, allocations: 29.7 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.571, allocations: 88.14 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.571, allocations: 19.66 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.571, allocations: 13.72 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.5711, allocations: 318.8 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.572e-05/0.5712, allocations: 11.98 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.955e-05/0.5712, allocations: 8 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.925e-05/0.5713, allocations: 36.84 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.5713, allocations: 3.938 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001063/0.5714, allocations: 69.56 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.5714, allocations: 10.19 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.5714, allocations: 0 / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.5714, allocations: 4 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.5715, allocations: 16 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5715, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.74e-05/0.5715, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.5715, allocations: 4 kB / 1.027 GB, free: 11.29 MB / 0.7794 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.634e-05/0.5716, allocations: 110.4 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.493e-05/0.5716, allocations: 11.92 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.5718, allocations: 73.59 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.5718, allocations: 0 / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.5718, allocations: 0 / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.5718, allocations: 0 / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.5721, allocations: 327.2 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5721, allocations: 0 / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.5722, allocations: 8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.5722, allocations: 0 / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.5722, allocations: 4 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5722, allocations: 4.031 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5722, allocations: 0 / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.5724, allocations: 188.5 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.5725, allocations: 77.11 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.5725, allocations: 0 / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.103e-05/0.5726, allocations: 11.98 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.5726, allocations: 64 / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.5726, allocations: 8.188 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.473e-05/0.5726, allocations: 79.28 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5727, allocations: 0 / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002629/0.5729, allocations: 23.98 kB / 1.028 GB, free: 10.27 MB / 0.7794 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.0005003/0.5734, allocations: 0.7444 MB / 1.029 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.373e-05/0.5735, allocations: 35.97 kB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.5735, allocations: 0 / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.765e-05/0.5736, allocations: 23.92 kB / 1.029 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.5738, allocations: 7.938 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.575, allocations: 1.34 MB / 1.03 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.5752, allocations: 0.6809 MB / 1.031 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.277e-05/0.5753, allocations: 8 kB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.127e-05/0.5753, allocations: 17.97 kB / 1.031 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.5753, allocations: 0 / 1.031 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01113/0.5864, allocations: 1.407 MB / 1.032 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.5867, allocations: 262.2 kB / 1.033 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.287, allocations: 0 / 1.033 GB, free: 5.801 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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