Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001817/0.001817, 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.002408/0.002409, allocations: 187.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 3.156/3.156, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.195/5.195, allocations: 461.9 MB / 0.7344 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002631/0.00263, allocations: 68.12 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3815, allocations: 157.4 MB / 1.052 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002277/0.3838, allocations: 1.533 MB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.3851, allocations: 0.6422 MB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.911e-05/0.3852, allocations: 4 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.213e-05/0.3853, allocations: 3.984 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.3854, allocations: 3.938 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.3865, allocations: 143.6 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.3867, allocations: 51.84 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.002e-05/0.3867, allocations: 0 / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.941e-05/0.3869, allocations: 31.91 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.1e-05/0.3869, allocations: 23.86 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.387, allocations: 4 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008368/0.3878, allocations: 347.3 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.3879, allocations: 11.98 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.052e-05/0.388, allocations: 31.86 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.3884, allocations: 183.7 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3885, allocations: 0 / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.136e-06/0.3885, allocations: 0 / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.3885, allocations: 0 / 1.055 GB, free: 5.637 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009424/0.3894, allocations: 395.3 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.682e-05/0.3895, allocations: 8.031 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.922e-05/0.3896, allocations: 38.75 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.3897, allocations: 8.938 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.3899, allocations: 172.3 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.39, allocations: 8.375 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/0.39, allocations: 4.375 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.3904, allocations: 78.16 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.3905, allocations: 3.938 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.3905, allocations: 8 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3905, allocations: 0 / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.3909, allocations: 47.95 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009276/0.3918, allocations: 328.5 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.3923, allocations: 82.53 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.3925, allocations: 28.84 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.3925, allocations: 0 / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/0.3926, allocations: 34.56 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.714e-06/0.3926, allocations: 3.938 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.002441/0.3951, allocations: 0.6385 MB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.3951, allocations: 63.28 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.686e-05/0.3952, allocations: 105.8 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.3953, allocations: 29.7 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.3953, allocations: 92.05 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.581e-05/0.3954, allocations: 43.44 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/0.3955, allocations: 29.8 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3957, allocations: 318.8 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.3958, allocations: 31.98 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3959, allocations: 36.09 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.3963, allocations: 75.83 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.3964, allocations: 4 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000516/0.3969, allocations: 117.5 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.3969, allocations: 4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.397, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.397, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.3972, allocations: 27.98 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.3972, allocations: 3.938 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.3974, allocations: 15.98 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.3974, allocations: 0 / 1.058 GB, free: 2.477 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 0.0001906/0.3976, allocations: 113.8 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.3976, allocations: 4 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004204/0.3981, allocations: 129.4 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3981, allocations: 7.984 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3981, allocations: 3.938 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3981, allocations: 4 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006261/0.3987, allocations: 378.7 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3988, allocations: 0 / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3989, allocations: 31.97 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.3989, allocations: 7.875 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.399, allocations: 0 / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.399, allocations: 8 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.399, allocations: 0 / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005333/0.3995, allocations: 251.3 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.3996, allocations: 81.02 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.3996, allocations: 7.969 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.3997, allocations: 11.98 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.3998, allocations: 4 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.3998, allocations: 8.047 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.926e-05/0.3998, allocations: 87.22 kB / 1.059 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.216e-06/0.3998, allocations: 0 / 1.059 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003139/0.4002, allocations: 39.94 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.00126/0.4014, allocations: 0.8215 MB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005262/0.402, allocations: 87.89 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.402, allocations: 0 / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.4023, allocations: 47.91 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.4028, allocations: 8 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.4065, allocations: 1.617 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.407, allocations: 0.6969 MB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001044/0.4071, allocations: 8.672 kB / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-05/0.4072, allocations: 27.42 kB / 1.062 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of SimCode: time 1.002e-06/0.4072, allocations: 0 / 1.062 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/0.5176, allocations: 2.219 MB / 1.065 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004/0.5181, allocations: 262.4 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.983/4.501, allocations: 1.891 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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,dp,dp_comp,der(dp),der(dp_comp),err_dp,err_der_dp Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,der(der(m_flow)),der(der_dp),der(der_dp_comp),der(dp),der(dp_comp),der(m_flow),der_dp,der_dp_comp,dp,dp_comp,err_der_dp,err_dp,k,m_flow,m_flow_turbulent,time