Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.004788/0.004789, allocations: 104.1 kB / 15.74 MB, free: 6.059 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.001207/0.001207, allocations: 197.7 kB / 16.68 MB, free: 5.969 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 59.91 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8709/0.8725, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.003153/0.8757, allocations: 1.268 MB / 1.167 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.877, allocations: 0.6173 MB / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.889e-05/0.8771, allocations: 0 / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.945e-05/0.8771, allocations: 3.938 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.949e-05/0.8773, allocations: 11.98 kB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007908/0.8781, allocations: 143.3 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.377e-05/0.8782, allocations: 19.92 kB / 1.168 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.244e-05/0.8782, allocations: 7.984 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.339e-05/0.8783, allocations: 11.94 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.979e-05/0.8783, allocations: 4 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.8784, allocations: 0 / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006283/0.879, allocations: 343.3 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.879, allocations: 7.984 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.207e-05/0.8791, allocations: 15.94 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.8795, allocations: 149.9 kB / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.8795, allocations: 0 / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.864e-06/0.8795, allocations: 3.938 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.209e-05/0.8795, allocations: 0 / 1.169 GB, free: 1.195 MB / 0.8887 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.0005203/0.88, allocations: 359.4 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.8801, allocations: 8.031 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.4e-05/0.8801, allocations: 34.75 kB / 1.169 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.8802, allocations: 0.9375 kB / 1.169 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.8803, allocations: 172.3 kB / 1.169 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.8804, allocations: 4.375 kB / 1.169 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.8804, allocations: 8.359 kB / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.8807, allocations: 38.25 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.8807, allocations: 7.875 kB / 1.169 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.8807, allocations: 4 kB / 1.169 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.8807, allocations: 0 / 1.169 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.901e-05/0.8808, allocations: 11.98 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/0.881, allocations: 153.7 kB / 1.169 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.8812, allocations: 50.55 kB / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.753e-05/0.8813, allocations: 16.86 kB / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.8813, allocations: 0 / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.8813, allocations: 42.64 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.8813, allocations: 0 / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007872/0.8821, allocations: 310.1 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.8822, allocations: 51.41 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.8823, allocations: 97.84 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.8823, allocations: 29.7 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.8824, allocations: 84.14 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.8824, allocations: 15.75 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.8824, allocations: 17.72 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001938/0.8827, allocations: 318.8 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.077e-05/0.8827, allocations: 12 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.75e-05/0.8827, allocations: 19.92 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.204e-05/0.8828, allocations: 36.98 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.8828, allocations: 0 / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001155/0.8829, allocations: 73.53 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.883, allocations: 4 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.883, allocations: 0 / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.883, allocations: 0 / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.8831, allocations: 12 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.8831, allocations: 3.938 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.169e-05/0.8831, allocations: 4 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.8831, allocations: 0 / 1.171 GB, free: 14.95 MB / 0.9044 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 9.891e-05/0.8832, allocations: 121.8 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.8833, allocations: 4.453 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001597/0.8834, allocations: 69.66 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.8834, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.8834, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.8835, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005384/0.884, allocations: 327.4 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.884, allocations: 8.062 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.111e-05/0.8841, allocations: 8 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.8841, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.8841, allocations: 8 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.8841, allocations: 3.938 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.8841, allocations: 0 / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.8844, allocations: 180.3 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.727e-05/0.8844, allocations: 85.14 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.8845, allocations: 3.984 kB / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.8846, allocations: 4 kB / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.8846, allocations: 0 / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.8846, allocations: 4 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.05e-05/0.8847, allocations: 79.28 kB / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8847, allocations: 0 / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003064/0.885, allocations: 24.05 kB / 1.171 GB, free: 13.92 MB / 0.9044 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.0006592/0.8856, allocations: 0.7404 MB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001524/0.8858, allocations: 39.92 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8858, allocations: 0 / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.071e-05/0.8859, allocations: 20.05 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.8861, allocations: 8 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.8876, allocations: 1.323 MB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.8879, allocations: 0.6845 MB / 1.174 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.232e-05/0.888, allocations: 12.2 kB / 1.174 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.716e-05/0.888, allocations: 15.44 kB / 1.174 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of SimCode: time 9.21e-07/0.888, allocations: 0 / 1.174 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.911, allocations: 1.602 MB / 1.176 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/9.302, allocations: 12.44 kB / 1.176 GB, free: 9.512 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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