Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.009917/0.009917, allocations: 104.5 kB / 15.74 MB, free: 5.984 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.002192/0.002192, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.296/2.296, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.89 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8748/0.8763, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002506/0.8788, allocations: 1.274 MB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009715/0.8798, allocations: 0.6174 MB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.8799, allocations: 3.938 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.8799, allocations: 8.453 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.166e-05/0.88, allocations: 1.953 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.8806, allocations: 140.7 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.173e-05/0.8806, allocations: 19.3 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.92e-05/0.8807, allocations: 6.844 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.49e-05/0.8807, allocations: 9.828 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.472e-05/0.8808, allocations: 8.719 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.8808, allocations: 1.062 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006069/0.8814, allocations: 345.5 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.8815, allocations: 6.391 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.935e-05/0.8815, allocations: 12.89 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.8818, allocations: 147.8 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.8818, allocations: 1.75 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8818, allocations: 0 / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.8818, allocations: 0 / 1.09 GB, free: 3.715 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.0004073/0.8822, allocations: 353.6 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.8823, allocations: 10.5 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.379e-05/0.8823, allocations: 39.44 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.8824, allocations: 11.22 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.168e-05/0.8824, allocations: 167.1 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.8825, allocations: 1.625 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.8825, allocations: 5.891 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.8826, allocations: 40.44 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.8826, allocations: 3.938 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.8826, allocations: 1.719 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.8827, allocations: 0 / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.645e-05/0.8827, allocations: 13.05 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.8828, allocations: 158.2 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.883, allocations: 48.27 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.19e-05/0.8831, allocations: 16.92 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.8831, allocations: 1.922 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.8831, allocations: 32.12 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.803e-06/0.8831, allocations: 0 / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005635/0.8837, allocations: 316.8 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.127e-05/0.8837, allocations: 52.59 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.084e-05/0.8838, allocations: 104 kB / 1.091 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.546e-06/0.8838, allocations: 26.42 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.7e-05/0.8838, allocations: 80.7 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/0.8838, allocations: 23.95 kB / 1.091 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.8839, allocations: 20.81 kB / 1.091 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.8839, allocations: 317.3 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.219e-05/0.884, allocations: 15.36 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.536e-05/0.884, allocations: 12.62 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.844e-05/0.8841, allocations: 33.3 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.8841, allocations: 1.125 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001023/0.8842, allocations: 70.53 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.8842, allocations: 6.797 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.8842, allocations: 0 / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.8842, allocations: 0.9688 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.421e-05/0.8843, allocations: 19.12 kB / 1.092 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.8843, allocations: 1.031 kB / 1.092 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.642e-05/0.8843, allocations: 0 / 1.092 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.8843, allocations: 2.281 kB / 1.092 GB, free: 1.738 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 4.943e-05/0.8844, allocations: 113.4 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.297e-05/0.8844, allocations: 6.125 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.8846, allocations: 73.08 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8846, allocations: 0.9062 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8846, allocations: 1.062 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.8846, allocations: 4.609 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.8848, allocations: 316.6 kB / 1.092 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.8848, allocations: 1.25 kB / 1.092 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.949e-05/0.8849, allocations: 14.66 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.8849, allocations: 1.547 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.8849, allocations: 2.156 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.8849, allocations: 0 / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.885, allocations: 1.953 kB / 1.092 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.8851, allocations: 188 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/0.8852, allocations: 81.28 kB / 1.093 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.8852, allocations: 1.609 kB / 1.093 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.768e-05/0.8853, allocations: 10.14 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.232e-05/0.8853, allocations: 8.484 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.8853, allocations: 2.25 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.365e-05/0.8853, allocations: 79.25 kB / 1.093 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8853, allocations: 4 kB / 1.093 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002539/0.8856, allocations: 23.64 kB / 1.093 GB, free: 0.8672 MB / 0.8575 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.0005071/0.8861, allocations: 0.7317 MB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001329/0.8862, allocations: 39.27 kB / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.8863, allocations: 1.125 kB / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.094e-05/0.8863, allocations: 20.5 kB / 1.094 GB, free: 16.15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.8865, allocations: 7.203 kB / 1.094 GB, free: 16.15 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.8877, allocations: 1.331 MB / 1.095 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.888, allocations: 0.6798 MB / 1.096 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.404e-05/0.8881, allocations: 4.656 kB / 1.096 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/0.8881, allocations: 11.59 kB / 1.096 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.8881, allocations: 0 / 1.096 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/0.9091, allocations: 1.625 MB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.331/9.24, allocations: 12.77 kB / 1.097 GB, free: 13.81 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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