Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_dp_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.000941/0.000941, allocations: 92.78 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.006383/0.006383, allocations: 172.5 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.593/2.593, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.0003287, allocations: 8 kB / 0.8729 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6795/0.6798, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001187/0.6811, allocations: 1.004 MB / 1.024 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001004/0.6821, allocations: 0.6074 MB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.334e-05/0.6821, allocations: 0 / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.6821, allocations: 8 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.939e-05/0.6822, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.6826, allocations: 119.6 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.73e-05/0.6827, allocations: 23.91 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.6827, allocations: 0 / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.426e-05/0.6828, allocations: 11.88 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.317e-05/0.6828, allocations: 11.98 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.6828, allocations: 4 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004567/0.6833, allocations: 343.4 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.159e-05/0.6833, allocations: 3.938 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.343e-05/0.6834, allocations: 29.7 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.6836, allocations: 145.9 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.6836, allocations: 0 / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6836, allocations: 0 / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.6836, allocations: 0 / 1.025 GB, free: 13.5 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.0003637/0.684, allocations: 363.4 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.684, allocations: 8.031 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.6841, allocations: 34.69 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.6841, allocations: 16.88 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.6842, allocations: 172.3 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.6842, allocations: 384 / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.6843, allocations: 4.375 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.727e-05/0.6844, allocations: 34.27 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.6844, allocations: 11.91 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.6844, allocations: 4 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.6844, allocations: 0 / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.52e-05/0.6844, allocations: 4 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.6846, allocations: 169.6 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.6848, allocations: 42.55 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/0.6848, allocations: 20.94 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.6848, allocations: 0 / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.6849, allocations: 38.56 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.6849, allocations: 0 / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005643/0.6855, allocations: 306.2 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.6855, allocations: 51.41 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.773e-05/0.6856, allocations: 101.8 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.6856, allocations: 25.7 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.084e-05/0.6856, allocations: 84.08 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.6857, allocations: 23.66 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.6857, allocations: 9.719 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.6858, allocations: 326.8 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.595e-05/0.6858, allocations: 8 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.079e-05/0.6859, allocations: 11.98 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.518e-05/0.6859, allocations: 32.86 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-07/0.6859, allocations: 0 / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.623e-05/0.686, allocations: 65.61 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.6861, allocations: 8 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.6861, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.6861, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.739e-05/0.6861, allocations: 15.94 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.6862, allocations: 11.94 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.6862, allocations: 0 / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.6862, allocations: 0 / 1.027 GB, free: 11.25 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 7.65e-05/0.6863, allocations: 118.4 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.6863, allocations: 3.938 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.6865, allocations: 69.88 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.6865, allocations: 4 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6865, allocations: 7.875 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.6865, allocations: 4 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.6868, allocations: 319.4 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.6868, allocations: 0.5156 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.306e-05/0.6869, allocations: 15.94 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.6869, allocations: 0 / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.6869, allocations: 0 / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.6869, allocations: 0 / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6869, allocations: 4 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.6871, allocations: 180.4 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.6871, allocations: 89.12 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.6872, allocations: 3.984 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.827e-05/0.6872, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.671e-05/0.6873, allocations: 4 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.6873, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.416e-05/0.6873, allocations: 87.22 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6873, allocations: 4.062 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002473/0.6876, allocations: 23.98 kB / 1.028 GB, free: 10.22 MB / 0.7794 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.0004769/0.6881, allocations: 0.7366 MB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.76e-05/0.6882, allocations: 31.92 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6882, allocations: 4.062 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.969e-05/0.6882, allocations: 19.98 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.6884, allocations: 4 kB / 1.029 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.6896, allocations: 1.352 MB / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.6898, allocations: 0.6809 MB / 1.031 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.94e-05/0.6899, allocations: 4 kB / 1.031 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.6899, allocations: 11.44 kB / 1.031 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6899, allocations: 96 / 1.031 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01043/0.7004, allocations: 1.404 MB / 1.032 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.7006, allocations: 247.4 kB / 1.033 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.394, allocations: 0 / 1.033 GB, free: 5.785 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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