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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001134/0.001134, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.009199/0.009199, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.445/1.445, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.922/2.922, allocations: 462.7 MB / 0.7364 GB, free: 264 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.0003802, allocations: 11.44 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4509/0.4513, allocations: 159.6 MB / 1.059 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002151/0.4536, allocations: 1.01 MB / 1.06 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001805/0.4554, allocations: 0.6268 MB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.685e-05/0.4554, allocations: 0 / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.4555, allocations: 3.938 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.59e-05/0.4556, allocations: 4 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008053/0.4564, allocations: 134.8 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.4565, allocations: 27.86 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.055e-05/0.4566, allocations: 7.938 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.064e-05/0.4567, allocations: 7.984 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.778e-05/0.4568, allocations: 11.94 kB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.4568, allocations: 4 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008399/0.4576, allocations: 343.3 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.965e-05/0.4577, allocations: 11.98 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.631e-05/0.4578, allocations: 37.62 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004043/0.4582, allocations: 143.9 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.4582, allocations: 12 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.056e-06/0.4582, allocations: 0 / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.4582, allocations: 0 / 1.061 GB, free: 3.07 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.0006781/0.4589, allocations: 368.2 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.265e-05/0.459, allocations: 8.031 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.4591, allocations: 8.938 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.4592, allocations: 172.2 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.4593, allocations: 384 / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.4593, allocations: 4.375 kB / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.4595, allocations: 58.23 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.4595, allocations: 192 / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.4596, allocations: 3.938 kB / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.4596, allocations: 0 / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.747e-05/0.4597, allocations: 19.98 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003509/0.46, allocations: 169.6 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.4602, allocations: 62.48 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.139e-05/0.4603, allocations: 36.84 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.4603, allocations: 0 / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.4605, allocations: 30.56 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.4605, allocations: 0 / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001602/0.4621, allocations: 0.5839 MB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.4622, allocations: 55.41 kB / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.487e-05/0.4623, allocations: 93.86 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.4623, allocations: 29.7 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.4624, allocations: 87.98 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.554e-05/0.4625, allocations: 39.31 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.4625, allocations: 25.73 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.4627, allocations: 322.9 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.094e-05/0.4628, allocations: 19.98 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.29e-05/0.4628, allocations: 27.98 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.463, allocations: 52.86 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.463, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002274/0.4632, allocations: 96.5 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4633, allocations: 4 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.4633, allocations: 7.984 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4633, allocations: 0 / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.4635, allocations: 19.94 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.4635, allocations: 4 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.231e-05/0.4636, allocations: 8 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.4636, allocations: 0 / 1.063 GB, free: 388 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.4637, allocations: 117.8 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.4637, allocations: 15.78 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.4641, allocations: 105.6 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4641, allocations: 0 / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4641, allocations: 4 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4643, allocations: 7.984 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006343/0.4649, allocations: 346.5 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4649, allocations: 0 / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.4651, allocations: 31.92 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.4651, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.4652, allocations: 4 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.4652, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4652, allocations: 4 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.4656, allocations: 219.3 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.4658, allocations: 77.11 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.4658, allocations: 8.031 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.466, allocations: 0 / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-05/0.466, allocations: 7.984 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.466, allocations: 8 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.885e-05/0.4661, allocations: 79.22 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4661, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004791/0.4666, allocations: 36.14 kB / 1.064 GB, free: 15.22 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 (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.0003051/0.4669, allocations: 131.2 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002272/0.4672, allocations: 72.34 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4672, allocations: 3.938 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.837e-05/0.4673, allocations: 31.88 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.4677, allocations: 8 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008524/0.4685, allocations: 352.3 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.4689, allocations: 0.6809 MB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.281e-05/0.469, allocations: 11.98 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.4691, allocations: 15.44 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.4691, allocations: 0 / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of Templates: time 0.005112/0.4742, allocations: 0.9048 MB / 1.066 GB, free: 12.99 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