Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_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_latest_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.001529/0.001529, allocations: 108 kB / 15.6 MB, free: 132 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.001881/0.001881, allocations: 192 kB / 16.53 MB, free: 6.391 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.548/2.548, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 68.22 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2355, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002289/0.2379, allocations: 1.284 MB / 1.054 GB, free: 6.961 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009461/0.2388, allocations: 0.6187 MB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.009e-05/0.2389, allocations: 0 / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.2389, allocations: 0 / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.269e-05/0.2389, allocations: 7.938 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.2395, allocations: 139.4 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.335e-05/0.2395, allocations: 27.91 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.613e-05/0.2396, allocations: 7.938 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.111e-05/0.2396, allocations: 4 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.103e-05/0.2397, allocations: 11.92 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.2397, allocations: 4 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004992/0.2402, allocations: 343.3 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.2402, allocations: 12 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.094e-05/0.2402, allocations: 7.938 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.2405, allocations: 144 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2405, allocations: 0 / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2405, allocations: 0 / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.2405, allocations: 0 / 1.055 GB, free: 5.645 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003739/0.2409, allocations: 363.4 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2409, allocations: 8.031 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.184e-05/0.241, allocations: 38.75 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.241, allocations: 0.9375 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.995e-05/0.2411, allocations: 172.3 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.2411, allocations: 8.359 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.2411, allocations: 384 / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.496e-05/0.2412, allocations: 46.19 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.2413, allocations: 3.938 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.2413, allocations: 0 / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2413, allocations: 0 / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.787e-05/0.2413, allocations: 12 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.2415, allocations: 157.7 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.2416, allocations: 42.61 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.2417, allocations: 20.94 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.2417, allocations: 0 / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.2417, allocations: 46.44 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2417, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005681/0.2423, allocations: 306.2 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.2424, allocations: 51.41 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.198e-05/0.2424, allocations: 101.8 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.2424, allocations: 25.7 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.689e-05/0.2425, allocations: 80.14 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.2425, allocations: 19.72 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.2425, allocations: 21.7 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2426, allocations: 314.8 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.392e-05/0.2427, allocations: 12 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.523e-05/0.2427, allocations: 19.97 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.2428, allocations: 32.84 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2428, allocations: 0 / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.464e-05/0.2429, allocations: 77.5 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2429, allocations: 4 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2429, allocations: 0 / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.2429, allocations: 0 / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.137e-05/0.243, allocations: 15.98 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.243, allocations: 0 / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.726e-05/0.243, allocations: 4 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.243, allocations: 0 / 1.057 GB, free: 3.398 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 (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.598e-05/0.2431, allocations: 115.4 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.2431, allocations: 8.359 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.2432, allocations: 77.58 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2433, allocations: 0 / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2433, allocations: 0 / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2433, allocations: 3.984 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.2436, allocations: 319.4 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2436, allocations: 0 / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-05/0.2437, allocations: 12 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2437, allocations: 0 / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.2437, allocations: 4.172 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.2437, allocations: 11.94 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2437, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.2439, allocations: 180.3 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.2439, allocations: 89.03 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.244, allocations: 0 / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.244, allocations: 4 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.244, allocations: 4 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.2441, allocations: 4 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.868e-05/0.2441, allocations: 79.27 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2441, allocations: 0 / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002491/0.2444, allocations: 32 kB / 1.058 GB, free: 2.363 MB / 0.8106 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.000458/0.2448, allocations: 0.7328 MB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.381e-05/0.2449, allocations: 31.98 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2449, allocations: 0 / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.029e-05/0.245, allocations: 24 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.2452, allocations: 11.88 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.2463, allocations: 1.319 MB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.2465, allocations: 0.6807 MB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.981e-05/0.2466, allocations: 4.469 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.2466, allocations: 15.44 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2466, allocations: 0 / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9803/1.227, allocations: 1.607 MB / 1.063 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.954/10.18, allocations: 8.438 kB / 1.063 GB, free: 13.96 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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