Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.001606/0.001606, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001225/0.001225, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.312/1.312, allocations: 222.9 MB / 239.9 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.173/2.173, allocations: 390.2 MB / 0.6644 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 59.91 kB / 0.8122 GB, free: 14.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5498/0.5513, allocations: 140.4 MB / 0.9492 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002098/0.5534, allocations: 1.344 MB / 0.9506 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007524/0.5542, allocations: 0.6072 MB / 0.9511 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.875e-05/0.5542, allocations: 4 kB / 0.9511 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.5543, allocations: 0 / 0.9511 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.609e-05/0.5543, allocations: 8.922 kB / 0.9512 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.5548, allocations: 132.8 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.017e-05/0.5548, allocations: 29.41 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.471e-05/0.5549, allocations: 2.969 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.072e-05/0.5549, allocations: 13.05 kB / 0.9513 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.199e-05/0.5549, allocations: 8.969 kB / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.5549, allocations: 5.406 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003925/0.5553, allocations: 350.5 kB / 0.9517 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.5554, allocations: 10.86 kB / 0.9517 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.5554, allocations: 8.312 kB / 0.9517 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.5556, allocations: 161 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.5556, allocations: 0 / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.093e-06/0.5556, allocations: 0 / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.5556, allocations: 1.344 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002936/0.5559, allocations: 365.5 kB / 0.9522 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.556, allocations: 10.34 kB / 0.9522 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.359e-05/0.556, allocations: 44.31 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.556, allocations: 2.406 kB / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.991e-05/0.5561, allocations: 165.9 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.5561, allocations: 6.875 kB / 0.9524 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.5562, allocations: 10.75 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.779e-05/0.5563, allocations: 49.81 kB / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5563, allocations: 3.938 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.5563, allocations: 1.625 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.5563, allocations: 0 / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.512e-05/0.5563, allocations: 22.89 kB / 0.9525 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.5565, allocations: 166 kB / 0.9527 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.983e-05/0.5566, allocations: 63.72 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.695e-05/0.5566, allocations: 25.39 kB / 0.9527 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.5566, allocations: 5.094 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.5567, allocations: 43.64 kB / 0.9528 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.5567, allocations: 9.188 kB / 0.9528 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0009329/0.5576, allocations: 0.5794 MB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.152e-05/0.5576, allocations: 56.92 kB / 0.9534 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.591e-05/0.5577, allocations: 100.7 kB / 0.9535 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.5577, allocations: 25.7 kB / 0.9535 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.22e-05/0.5577, allocations: 85.42 kB / 0.9536 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.5577, allocations: 35.86 kB / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.726e-05/0.5578, allocations: 30.28 kB / 0.9537 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.5578, allocations: 316.2 kB / 0.954 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.5579, allocations: 23.73 kB / 0.954 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.594e-05/0.5579, allocations: 17.06 kB / 0.954 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.766e-05/0.558, allocations: 57.81 kB / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.558, allocations: 7.938 kB / 0.9541 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001314/0.5581, allocations: 103.4 kB / 0.9542 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.5582, allocations: 6.125 kB / 0.9542 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.5582, allocations: 0 / 0.9542 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.5582, allocations: 1.281 kB / 0.9542 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.874e-05/0.5583, allocations: 21.05 kB / 0.9542 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.5583, allocations: 1.719 kB / 0.9542 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.405e-05/0.5583, allocations: 3.938 kB / 0.9542 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.5583, allocations: 2.75 kB / 0.9542 GB, free: 4.809 MB / 0.7169 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 (13): * Single equations (assignments): 13 * 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 4.925e-05/0.5584, allocations: 121.1 kB / 0.9543 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.5584, allocations: 6.125 kB / 0.9543 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.5586, allocations: 111.8 kB / 0.9544 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.5586, allocations: 5.062 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5586, allocations: 0 / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5586, allocations: 0.9375 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.5589, allocations: 353.2 kB / 0.9548 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5589, allocations: 0 / 0.9548 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.559, allocations: 25.64 kB / 0.9548 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.559, allocations: 0 / 0.9548 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.5591, allocations: 5.125 kB / 0.9548 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5591, allocations: 1.375 kB / 0.9548 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5591, allocations: 0 / 0.9548 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001948/0.5593, allocations: 222.2 kB / 0.955 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.5593, allocations: 86 kB / 0.9551 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.5593, allocations: 2.156 kB / 0.9551 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.5594, allocations: 5.156 kB / 0.9551 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.5594, allocations: 8.156 kB / 0.9551 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.5594, allocations: 6.922 kB / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.697e-05/0.5595, allocations: 76.72 kB / 0.9552 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5595, allocations: 0 / 0.9552 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002693/0.5598, allocations: 36.84 kB / 0.9552 GB, free: 3.852 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * 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.0004131/0.5602, allocations: 0.7881 MB / 0.956 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001357/0.5603, allocations: 63.62 kB / 0.9561 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5603, allocations: 1.25 kB / 0.9561 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.57e-05/0.5604, allocations: 37.42 kB / 0.9561 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.5606, allocations: 6.531 kB / 0.9561 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.5617, allocations: 1.515 MB / 0.9576 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.335e-05/0.5618, allocations: 0.6889 MB / 0.9583 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.807e-05/0.5618, allocations: 13.58 kB / 0.9583 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.5619, allocations: 17.16 kB / 0.9583 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.5619, allocations: 0 / 0.9583 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01409/0.576, allocations: 1.951 MB / 0.9602 GB, free: 44 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.5762, allocations: 249 kB / 0.9604 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.341, allocations: 0 / 0.9604 GB, free: 15.79 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time