Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001141/0.001145, allocations: 108 kB / 15.61 MB, free: 152 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.001336/0.001336, allocations: 195.1 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.638/2.638, allocations: 461.9 MB / 0.7346 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.5 kB / 0.8992 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2442, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002503/0.2467, allocations: 1.294 MB / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009668/0.2477, allocations: 0.6188 MB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.2478, allocations: 0 / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.2478, allocations: 4 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.376e-05/0.2478, allocations: 7.922 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.2484, allocations: 147.3 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.2485, allocations: 35.86 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.742e-05/0.2485, allocations: 11.97 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.081e-05/0.2485, allocations: 8 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.2486, allocations: 15.92 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.2486, allocations: 0 / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005039/0.2491, allocations: 347.3 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.055e-05/0.2491, allocations: 0 / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.2492, allocations: 19.92 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.2495, allocations: 151.9 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2495, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2495, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2495, allocations: 0 / 1.055 GB, free: 5.676 MB / 0.8106 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.0003924/0.2499, allocations: 371.4 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.2499, allocations: 8.031 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.436e-05/0.25, allocations: 42.61 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.25, allocations: 12.84 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.2501, allocations: 164.3 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.2501, allocations: 4.375 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.2502, allocations: 384 / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.2503, allocations: 54.19 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2503, allocations: 7.938 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.2503, allocations: 3.984 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.2503, allocations: 4 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.553e-05/0.2504, allocations: 15.98 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/0.2505, allocations: 165.7 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.607e-05/0.2506, allocations: 62.62 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.309e-05/0.2507, allocations: 36.78 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.2507, allocations: 4 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.2507, allocations: 34.56 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.2507, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.00106/0.2518, allocations: 0.5838 MB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.2519, allocations: 55.41 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.624e-05/0.2519, allocations: 97.86 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.2519, allocations: 25.7 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.393e-05/0.252, allocations: 84 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.252, allocations: 43.39 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.2521, allocations: 25.7 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.2522, allocations: 318.8 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.181e-05/0.2522, allocations: 24.11 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.561e-05/0.2523, allocations: 23.98 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.022e-05/0.2524, allocations: 63.92 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.2524, allocations: 0 / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001372/0.2525, allocations: 89.62 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.2525, allocations: 8 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2525, allocations: 96 / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.2526, allocations: 7.922 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2527, allocations: 20 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2527, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.598e-05/0.2527, allocations: 8 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.2527, allocations: 4 kB / 1.058 GB, free: 2.922 MB / 0.8106 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 7.703e-05/0.2528, allocations: 119.3 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.2528, allocations: 11.84 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.253, allocations: 101.7 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.253, allocations: 4 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.253, allocations: 0 / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.253, allocations: 0 / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.2534, allocations: 358.4 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2534, allocations: 0 / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.2536, allocations: 19.98 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2536, allocations: 0 / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.2536, allocations: 4 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2536, allocations: 3.984 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2536, allocations: 4 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.2538, allocations: 223.3 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.2539, allocations: 85.08 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.2539, allocations: 4 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.63e-05/0.254, allocations: 4 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.608e-05/0.254, allocations: 3.984 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.254, allocations: 11.98 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.033e-05/0.2541, allocations: 79.28 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2541, allocations: 0 / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002651/0.2543, allocations: 36 kB / 1.059 GB, free: 1.766 MB / 0.8106 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.0005538/0.2549, allocations: 0.787 MB / 1.06 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000139/0.2551, allocations: 67.97 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2551, allocations: 0 / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.2551, allocations: 35.92 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.2553, allocations: 9.031 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.2567, allocations: 1.499 MB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.257, allocations: 0.6885 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.67e-05/0.257, allocations: 8 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.2571, allocations: 23.38 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2571, allocations: 0 / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.2745, allocations: 2.028 MB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.116, allocations: 8.234 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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