Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: 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_10_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_10_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.008745/0.008745, allocations: 99.56 kB / 15.73 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.001662/0.001662, allocations: 194 kB / 16.67 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.46/2.46, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.12 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8446/0.8459, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002412/0.8483, allocations: 1.295 MB / 1.168 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.8494, allocations: 0.6135 MB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.51e-05/0.8495, allocations: 0 / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.8495, allocations: 0 / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.016e-05/0.8496, allocations: 7.922 kB / 1.168 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005899/0.8502, allocations: 156.5 kB / 1.169 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.124e-05/0.8502, allocations: 31.84 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.708e-05/0.8503, allocations: 7.984 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.306e-05/0.8503, allocations: 8 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.709e-05/0.8504, allocations: 11.92 kB / 1.169 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.8504, allocations: 4 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005445/0.851, allocations: 347.3 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.851, allocations: 4 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.851, allocations: 11.94 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.8513, allocations: 160 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.8513, allocations: 0 / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8513, allocations: 0 / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.8514, allocations: 0 / 1.169 GB, free: 1.191 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004868/0.8518, allocations: 375 kB / 1.17 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.8519, allocations: 12.62 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.8519, allocations: 0.9375 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.8521, allocations: 168.3 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.8521, allocations: 12.38 kB / 1.17 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.8521, allocations: 4.375 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.8523, allocations: 50.19 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.8523, allocations: 192 / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.8523, allocations: 7.938 kB / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.8523, allocations: 0 / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.294e-05/0.8524, allocations: 19.98 kB / 1.17 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.8526, allocations: 165.7 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.8527, allocations: 66.48 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.408e-05/0.8528, allocations: 24.86 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.8528, allocations: 0 / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.8529, allocations: 38.55 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.8529, allocations: 0 / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.001246/0.8541, allocations: 0.5997 MB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.8542, allocations: 55.34 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.468e-05/0.8542, allocations: 93.86 kB / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.8543, allocations: 29.7 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.8543, allocations: 80.14 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.8544, allocations: 35.69 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.8544, allocations: 33.84 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8545, allocations: 318.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.8546, allocations: 19.98 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.566e-05/0.8546, allocations: 20 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.076e-05/0.8547, allocations: 58.03 kB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.8547, allocations: 0 / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001443/0.8549, allocations: 106.5 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.8549, allocations: 4 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.8549, allocations: 0 / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.8549, allocations: 4 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.855, allocations: 27.98 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.855, allocations: 0 / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.774e-05/0.8551, allocations: 7.938 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.8551, allocations: 4 kB / 1.172 GB, free: 14.48 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 (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 7.96e-05/0.8552, allocations: 113.8 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.8552, allocations: 3.938 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.8554, allocations: 117.6 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.8554, allocations: 4 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.8555, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8555, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003974/0.8559, allocations: 358.4 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8559, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.856, allocations: 19.98 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.856, allocations: 4 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.856, allocations: 0 / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.856, allocations: 0 / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.856, allocations: 3.938 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.8563, allocations: 219.4 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 9.515e-05/0.8564, allocations: 81.09 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.8564, allocations: 4 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.009e-05/0.8565, allocations: 7.969 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.197e-05/0.8566, allocations: 7.984 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.8566, allocations: 3.938 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.37e-05/0.8566, allocations: 83.28 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8566, allocations: 4.156 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002766/0.8569, allocations: 35.88 kB / 1.173 GB, free: 13.31 MB / 0.9044 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.0002222/0.8571, allocations: 139 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000152/0.8573, allocations: 57.05 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8573, allocations: 4 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.481e-05/0.8574, allocations: 35.92 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.8577, allocations: 8 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005981/0.8583, allocations: 296.5 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.8585, allocations: 0.6923 MB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.963e-05/0.8586, allocations: 4 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.585e-05/0.8586, allocations: 15.44 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of SimCode: time 3.3e-07/0.8586, allocations: 0 / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of Templates: time 0.003452/0.8621, allocations: 0.9527 MB / 1.175 GB, free: 11.1 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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