Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_dp_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.0008643/0.0008643, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.005184/0.005184, allocations: 169.8 kB / 16.26 MB, free: 6.68 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.196/1.196, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.148/2.148, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5396, allocations: 142.4 MB / 0.9552 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.0009507/0.5406, allocations: 0.9963 MB / 0.9561 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007494/0.5413, allocations: 0.6105 MB / 0.9567 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.248e-05/0.5413, allocations: 0 / 0.9567 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.124e-05/0.5414, allocations: 7.938 kB / 0.9567 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.66e-05/0.5414, allocations: 1.281 kB / 0.9568 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.5418, allocations: 128 kB / 0.9569 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.769e-05/0.5418, allocations: 16.83 kB / 0.9569 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.161e-05/0.5419, allocations: 6.094 kB / 0.9569 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.732e-05/0.5419, allocations: 3.969 kB / 0.9569 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.768e-05/0.5419, allocations: 6.906 kB / 0.9569 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.542, allocations: 1.156 kB / 0.9569 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003854/0.5423, allocations: 352.8 kB / 0.9572 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.699e-06/0.5424, allocations: 5.281 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.472e-05/0.5424, allocations: 33.36 kB / 0.9573 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.5426, allocations: 150.3 kB / 0.9574 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.5426, allocations: 0 / 0.9574 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5426, allocations: 0 / 0.9574 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.956e-06/0.5426, allocations: 1.25 kB / 0.9574 GB, free: 5.953 MB / 0.7169 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.0002469/0.5429, allocations: 356.9 kB / 0.9578 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.5429, allocations: 8.812 kB / 0.9578 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.094e-05/0.5429, allocations: 36.59 kB / 0.9578 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.888e-05/0.543, allocations: 0.9375 kB / 0.9578 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.455e-05/0.543, allocations: 170.3 kB / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-06/0.543, allocations: 2.531 kB / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.5431, allocations: 4.359 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.497e-05/0.5431, allocations: 37.73 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.5431, allocations: 3.938 kB / 0.958 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.5432, allocations: 0 / 0.958 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.5432, allocations: 5.953 kB / 0.958 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.028e-05/0.5432, allocations: 13.59 kB / 0.958 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001002/0.5433, allocations: 163.6 kB / 0.9582 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.5435, allocations: 55 kB / 0.9582 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.553e-05/0.5435, allocations: 15.33 kB / 0.9583 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.5435, allocations: 5.609 kB / 0.9583 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.236e-05/0.5435, allocations: 36.09 kB / 0.9583 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.5435, allocations: 4 kB / 0.9583 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004398/0.544, allocations: 303 kB / 0.9586 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/0.544, allocations: 52.69 kB / 0.9586 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.442e-05/0.5441, allocations: 97.72 kB / 0.9587 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.404e-06/0.5441, allocations: 29.7 kB / 0.9588 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.271e-05/0.5441, allocations: 81.77 kB / 0.9588 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.5441, allocations: 21.14 kB / 0.9589 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.5441, allocations: 16.84 kB / 0.9589 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.347e-05/0.5442, allocations: 318.8 kB / 0.9592 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.113e-05/0.5442, allocations: 10.19 kB / 0.9592 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.782e-05/0.5442, allocations: 15.31 kB / 0.9592 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.566e-05/0.5443, allocations: 32.09 kB / 0.9592 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-07/0.5443, allocations: 0 / 0.9592 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.942e-05/0.5444, allocations: 73.77 kB / 0.9593 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.5444, allocations: 5.469 kB / 0.9593 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.5444, allocations: 0 / 0.9593 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.336e-06/0.5444, allocations: 0 / 0.9593 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.433e-05/0.5444, allocations: 14.75 kB / 0.9593 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.5444, allocations: 3.938 kB / 0.9593 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.605e-05/0.5445, allocations: 0 / 0.9593 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.5445, allocations: 5.812 kB / 0.9593 GB, free: 3.922 MB / 0.7169 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 3.917e-05/0.5445, allocations: 115.6 kB / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-06/0.5445, allocations: 7.531 kB / 0.9595 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.5446, allocations: 66.5 kB / 0.9595 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.5446, allocations: 0 / 0.9595 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.5447, allocations: 0 / 0.9595 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.5447, allocations: 5.594 kB / 0.9595 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.5449, allocations: 323.4 kB / 0.9598 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5449, allocations: 0 / 0.9598 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.342e-05/0.5449, allocations: 11 kB / 0.9598 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5449, allocations: 3.938 kB / 0.9598 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-06/0.545, allocations: 1.375 kB / 0.9598 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.545, allocations: 5.312 kB / 0.9599 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.545, allocations: 0 / 0.9599 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.5451, allocations: 186.5 kB / 0.96 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.5451, allocations: 79.86 kB / 0.9601 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.5451, allocations: 7.922 kB / 0.9601 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.432e-05/0.5452, allocations: 5.891 kB / 0.9601 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.062e-05/0.5452, allocations: 2.75 kB / 0.9601 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.5452, allocations: 2.75 kB / 0.9601 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.684e-05/0.5452, allocations: 86.08 kB / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5453, allocations: 0 / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002241/0.5455, allocations: 27.11 kB / 0.9602 GB, free: 3.012 MB / 0.7169 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.0002716/0.5458, allocations: 0.7319 MB / 0.9609 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.729e-05/0.5458, allocations: 43.3 kB / 0.961 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5459, allocations: 1.375 kB / 0.961 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.247e-05/0.5459, allocations: 18.98 kB / 0.961 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001994/0.5461, allocations: 2.75 kB / 0.961 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007437/0.5468, allocations: 1.343 MB / 0.9623 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.612e-05/0.5469, allocations: 0.6835 MB / 0.963 GB, free: 260 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.467e-05/0.547, allocations: 3.906 kB / 0.963 GB, free: 260 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.547, allocations: 15.53 kB / 0.963 GB, free: 248 kB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.547, allocations: 0 / 0.963 GB, free: 248 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.277/1.824, allocations: 1.393 MB / 0.9644 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/1.824, allocations: 240.3 kB / 0.9646 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/3.491, allocations: 0 / 0.9646 GB, free: 15.39 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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