Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001267/0.001267, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001499/0.001499, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.853/2.853, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003956, allocations: 11.59 kB / 0.9021 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3476, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001958/0.3496, allocations: 0.9908 MB / 1.059 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.351, allocations: 0.5688 MB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.451e-05/0.351, allocations: 3.938 kB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.3511, allocations: 0 / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.507e-05/0.3511, allocations: 3.938 kB / 1.06 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007317/0.3518, allocations: 134.1 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.925e-05/0.3519, allocations: 23.92 kB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.091e-05/0.352, allocations: 11.94 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.328e-05/0.3521, allocations: 4 kB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.303e-05/0.3521, allocations: 23.91 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.3522, allocations: 0 / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008297/0.353, allocations: 327.4 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.391e-05/0.353, allocations: 19.91 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.3531, allocations: 29.7 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.3533, allocations: 96.11 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.3533, allocations: 3.984 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3534, allocations: 4 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3534, allocations: 0 / 1.06 GB, free: 3.09 MB / 0.8106 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.0005942/0.354, allocations: 363.2 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.354, allocations: 11.97 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.3541, allocations: 4 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.3543, allocations: 163.1 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.3543, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.3543, allocations: 15.8 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001379/0.3545, allocations: 49.69 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3545, allocations: 0 / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3545, allocations: 4 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3545, allocations: 0 / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.275e-05/0.3546, allocations: 19.98 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000214/0.3548, allocations: 165.6 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.3549, allocations: 62.48 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.677e-05/0.355, allocations: 24.86 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.3551, allocations: 7.953 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3551, allocations: 38.55 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3551, allocations: 0 / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001598/0.3567, allocations: 0.58 MB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3568, allocations: 59.39 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.461e-05/0.3569, allocations: 97.86 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3569, allocations: 25.7 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.3569, allocations: 84 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.833e-05/0.357, allocations: 51.39 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/0.357, allocations: 0 / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002035/0.3572, allocations: 314.8 kB / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.885e-05/0.3573, allocations: 19.98 kB / 1.062 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.3574, allocations: 24.11 kB / 1.062 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.4e-05/0.3575, allocations: 28 kB / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3575, allocations: 3.938 kB / 1.062 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002071/0.3577, allocations: 103.4 kB / 1.062 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3577, allocations: 4 kB / 1.062 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3578, allocations: 0 / 1.062 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.3578, allocations: 0 / 1.062 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3579, allocations: 23.98 kB / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3579, allocations: 0 / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.168e-05/0.358, allocations: 0 / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.358, allocations: 8 kB / 1.062 GB, free: 480 kB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.3581, allocations: 121.8 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.3581, allocations: 7.859 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.3584, allocations: 105.6 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3584, allocations: 3.984 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3584, allocations: 0 / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3584, allocations: 4 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005806/0.359, allocations: 358.4 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.359, allocations: 4 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.3592, allocations: 23.98 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3592, allocations: 0 / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.3592, allocations: 4 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3592, allocations: 0 / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3592, allocations: 0 / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.3596, allocations: 219.3 kB / 1.063 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.3599, allocations: 81.23 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.3599, allocations: 8 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.36, allocations: 4 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-05/0.3601, allocations: 11.92 kB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.3601, allocations: 4 kB / 1.063 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.553e-05/0.3602, allocations: 75.28 kB / 1.063 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3602, allocations: 4 kB / 1.063 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000444/0.3606, allocations: 32 kB / 1.063 GB, free: 15.31 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002809/0.3609, allocations: 143.2 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.3611, allocations: 59.92 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3611, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.945e-05/0.3612, allocations: 35.92 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.3616, allocations: 14.44 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.3622, allocations: 336.7 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3626, allocations: 0.6887 MB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.312e-05/0.3626, allocations: 11.98 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.3627, allocations: 11.44 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3627, allocations: 0 / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of Templates: time 0.004193/0.3669, allocations: 0.8914 MB / 1.066 GB, free: 13.1 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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