Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.006077/0.006077, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.001198/0.001198, allocations: 196.3 kB / 16.67 MB, free: 5.93 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.506/2.506, allocations: 390.3 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 67.23 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3306, allocations: 140.4 MB / 1.087 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.003071/0.3337, allocations: 1.27 MB / 1.089 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.3348, allocations: 0.6089 MB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.553e-05/0.3349, allocations: 4 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.069e-05/0.3349, allocations: 0 / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.974e-05/0.335, allocations: 7.922 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.3358, allocations: 140.9 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.478e-05/0.3359, allocations: 20 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.516e-05/0.3359, allocations: 4 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.116e-05/0.336, allocations: 15.83 kB / 1.09 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.919e-05/0.336, allocations: 8 kB / 1.09 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.3361, allocations: 3.938 kB / 1.09 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006082/0.3367, allocations: 343.3 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.727e-05/0.3367, allocations: 7.984 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.3367, allocations: 7.938 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.3371, allocations: 143.1 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3371, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3371, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3371, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 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.0004834/0.3376, allocations: 359.7 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3376, allocations: 12.03 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.912e-05/0.3377, allocations: 46.73 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.3377, allocations: 4.844 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3379, allocations: 164.4 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.3379, allocations: 384 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.3379, allocations: 384 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.338, allocations: 42.25 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3381, allocations: 3.938 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3381, allocations: 3.938 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3381, allocations: 0 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.679e-05/0.3381, allocations: 19.92 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001921/0.3383, allocations: 161.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.3386, allocations: 46.56 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.356e-05/0.3386, allocations: 12.84 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.3386, allocations: 8 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.3387, allocations: 30.56 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.3387, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007324/0.3394, allocations: 318.2 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.3395, allocations: 55.41 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.718e-05/0.3395, allocations: 93.86 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.3396, allocations: 29.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.197e-05/0.3396, allocations: 80.14 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.3396, allocations: 23.64 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.3397, allocations: 21.72 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3398, allocations: 318.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.015e-05/0.3399, allocations: 11.98 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.337e-05/0.3399, allocations: 8 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.65e-05/0.34, allocations: 32.86 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.34, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001082/0.3401, allocations: 77.45 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3401, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3401, allocations: 3.938 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3401, allocations: 4 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.317e-05/0.3402, allocations: 15.98 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.3402, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.91e-05/0.3402, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.3402, allocations: 8 kB / 1.092 GB, free: 13.21 MB / 0.8575 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 8.254e-05/0.3403, allocations: 105.8 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.3404, allocations: 7.938 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.3405, allocations: 81.64 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3405, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3405, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3406, allocations: 4 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.3409, allocations: 315.4 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3409, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.33e-05/0.341, allocations: 11.98 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.341, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.341, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.341, allocations: 3.938 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.341, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.3412, allocations: 192.2 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.3413, allocations: 81.09 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.3413, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.316e-05/0.3414, allocations: 8 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.3414, allocations: 3.984 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3414, allocations: 4 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.771e-05/0.3415, allocations: 79.86 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3415, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002518/0.3417, allocations: 20 kB / 1.093 GB, free: 12.19 MB / 0.8575 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.0005201/0.3423, allocations: 0.7289 MB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000123/0.3424, allocations: 40.52 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3424, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.052e-05/0.3424, allocations: 23.94 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.3427, allocations: 8.109 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3441, allocations: 1.319 MB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3445, allocations: 0.6845 MB / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.308e-05/0.3445, allocations: 4 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.3445, allocations: 19.42 kB / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of SimCode: time 3e-07/0.3445, allocations: 0 / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3655, allocations: 1.598 MB / 1.097 GB, free: 7.805 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/8.299, allocations: 20.38 kB / 1.097 GB, free: 7.789 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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