Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007839/0.007839, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001236/0.001237, allocations: 201.3 kB / 16.68 MB, free: 5.93 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.375/2.375, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.89 kB / 0.9509 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8725/0.8739, allocations: 140.4 MB / 1.088 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002405/0.8764, allocations: 1.291 MB / 1.089 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.8776, allocations: 0.6144 MB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.8777, allocations: 3.938 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.8777, allocations: 0 / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.615e-05/0.8778, allocations: 5.391 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006376/0.8784, allocations: 151.2 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.763e-05/0.8785, allocations: 29.19 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.779e-05/0.8785, allocations: 2.969 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.051e-05/0.8786, allocations: 8.484 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.475e-05/0.8787, allocations: 19.34 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.8787, allocations: 2.156 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005896/0.8793, allocations: 341.8 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.8793, allocations: 11.2 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.8793, allocations: 14.59 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.8796, allocations: 157.7 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.8796, allocations: 1.688 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.084e-06/0.8796, allocations: 0 / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.8797, allocations: 3.938 kB / 1.091 GB, free: 3.938 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003922/0.8801, allocations: 369.9 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.8801, allocations: 9.672 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.8801, allocations: 11.08 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.262e-05/0.8802, allocations: 167.7 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.8803, allocations: 5.375 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.8803, allocations: 8.156 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.8804, allocations: 45.97 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.8804, allocations: 1.281 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.8805, allocations: 8.688 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.8805, allocations: 1.094 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.929e-05/0.8805, allocations: 18.98 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.8807, allocations: 162.5 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.8808, allocations: 72.39 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.009e-05/0.8809, allocations: 24.7 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.8809, allocations: 1.547 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.729e-05/0.8809, allocations: 36.22 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.133e-06/0.8809, allocations: 0 / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001129/0.8821, allocations: 0.5922 MB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.8821, allocations: 52.06 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.399e-05/0.8822, allocations: 94.75 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.8822, allocations: 30.52 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.845e-05/0.8822, allocations: 81.78 kB / 1.092 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.8822, allocations: 38.8 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.8823, allocations: 33.06 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.734e-05/0.8824, allocations: 314.1 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.737e-05/0.8824, allocations: 22.67 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.511e-05/0.8825, allocations: 23.72 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.8826, allocations: 63.33 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8826, allocations: 0 / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001521/0.8828, allocations: 100.6 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.8828, allocations: 9.5 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.8828, allocations: 0 / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.8828, allocations: 5 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.8829, allocations: 25.64 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.883, allocations: 1 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.455e-05/0.883, allocations: 0 / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.883, allocations: 7.531 kB / 1.093 GB, free: 1.695 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 (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 6.878e-05/0.8831, allocations: 112.7 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.8831, allocations: 11.41 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.8833, allocations: 101.8 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.8833, allocations: 1 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.8833, allocations: 8.562 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.8833, allocations: 1.297 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.8837, allocations: 351.9 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.8837, allocations: 2.016 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.8838, allocations: 27.33 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.8838, allocations: 0.6875 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.8839, allocations: 1.734 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.8839, allocations: 0.8125 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8839, allocations: 0.8125 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002557/0.8841, allocations: 227.4 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.59e-05/0.8842, allocations: 83.27 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.8842, allocations: 2.203 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.969e-05/0.8843, allocations: 6.047 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.17e-05/0.8843, allocations: 6.516 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.8843, allocations: 3.141 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.058e-05/0.8844, allocations: 77.69 kB / 1.094 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8844, allocations: 4.156 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003197/0.8847, allocations: 37.72 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0002244/0.8849, allocations: 143.9 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000171/0.8851, allocations: 61.72 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8851, allocations: 0 / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.869e-05/0.8852, allocations: 40.39 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.8854, allocations: 10.11 kB / 1.094 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005646/0.886, allocations: 284.4 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.8862, allocations: 0.6853 MB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.8863, allocations: 11.59 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.8863, allocations: 17.36 kB / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.8863, allocations: 0 / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.003594/0.8899, allocations: 0.9525 MB / 1.096 GB, free: 15.62 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time