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.001763/0.001763, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002074/0.002074, allocations: 193.3 kB / 16.14 MB, free: 6.652 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.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.34/2.34, allocations: 390.2 MB / 0.6642 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 64.05 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6446/0.6466, allocations: 140.4 MB / 0.9489 GB, free: 9.445 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002127/0.6487, allocations: 1.348 MB / 0.9502 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000934/0.6497, allocations: 0.6259 MB / 0.9508 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.725e-05/0.6497, allocations: 4 kB / 0.9508 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.6498, allocations: 3.984 kB / 0.9509 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.633e-05/0.6498, allocations: 5.406 kB / 0.9509 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.6503, allocations: 127.6 kB / 0.951 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.817e-05/0.6503, allocations: 25.64 kB / 0.951 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.122e-05/0.6504, allocations: 2.469 kB / 0.951 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.435e-05/0.6504, allocations: 13.84 kB / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.155e-05/0.6505, allocations: 13.08 kB / 0.951 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.6505, allocations: 5.5 kB / 0.951 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004146/0.6509, allocations: 345.1 kB / 0.9514 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.6509, allocations: 9.562 kB / 0.9514 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.651, allocations: 21.12 kB / 0.9514 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.6512, allocations: 148.5 kB / 0.9515 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.6512, allocations: 3.984 kB / 0.9515 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.32e-07/0.6512, allocations: 0 / 0.9515 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.6512, allocations: 0 / 0.9515 GB, free: 7.449 MB / 0.7169 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.0003241/0.6515, allocations: 371.1 kB / 0.9519 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.6516, allocations: 9.219 kB / 0.9519 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.6516, allocations: 11.23 kB / 0.9519 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.492e-05/0.6517, allocations: 161.4 kB / 0.9521 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.6517, allocations: 3 kB / 0.9521 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.6517, allocations: 7.031 kB / 0.9521 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.6519, allocations: 44.91 kB / 0.9521 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.6519, allocations: 5.406 kB / 0.9521 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.6519, allocations: 7.875 kB / 0.9521 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.6519, allocations: 1.25 kB / 0.9521 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.642e-05/0.6519, allocations: 22.41 kB / 0.9522 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.6521, allocations: 170.7 kB / 0.9523 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.802e-05/0.6522, allocations: 55.16 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.777e-05/0.6522, allocations: 30.81 kB / 0.9524 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.6522, allocations: 0 / 0.9524 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.6523, allocations: 40.28 kB / 0.9524 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 8.02e-07/0.6523, allocations: 0 / 0.9524 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0009558/0.6532, allocations: 0.595 MB / 0.953 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.6533, allocations: 52.53 kB / 0.9531 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.207e-05/0.6533, allocations: 97.02 kB / 0.9532 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.6533, allocations: 26.89 kB / 0.9532 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.296e-05/0.6533, allocations: 84.27 kB / 0.9533 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.6534, allocations: 39.92 kB / 0.9533 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.6534, allocations: 30.55 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.355e-05/0.6535, allocations: 313.1 kB / 0.9536 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.014e-05/0.6535, allocations: 32.45 kB / 0.9537 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.741e-05/0.6536, allocations: 15.84 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/0.6537, allocations: 65.38 kB / 0.9537 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.6537, allocations: 0 / 0.9537 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001283/0.6538, allocations: 106.4 kB / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.6538, allocations: 5.062 kB / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.6538, allocations: 0 / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.6538, allocations: 1.531 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.861e-05/0.6539, allocations: 21.89 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.6539, allocations: 0 / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.365e-05/0.654, allocations: 1.25 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.654, allocations: 2.688 kB / 0.9539 GB, free: 5.129 MB / 0.7169 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 5.019e-05/0.654, allocations: 116.1 kB / 0.954 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.6541, allocations: 15.02 kB / 0.954 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.6542, allocations: 107.5 kB / 0.9541 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.6543, allocations: 1.25 kB / 0.9541 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6543, allocations: 0 / 0.9541 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.6543, allocations: 5.078 kB / 0.9541 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.6546, allocations: 353.3 kB / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.6546, allocations: 0 / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.6547, allocations: 21.27 kB / 0.9545 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6547, allocations: 0 / 0.9545 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.6547, allocations: 10.31 kB / 0.9545 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.6547, allocations: 0 / 0.9545 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6547, allocations: 1.031 kB / 0.9545 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.6549, allocations: 226 kB / 0.9547 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.718e-05/0.6549, allocations: 82.27 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.655, allocations: 1.156 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.602e-05/0.6551, allocations: 1.125 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.6551, allocations: 15.7 kB / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.6551, allocations: 7.625 kB / 0.9548 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.654e-05/0.6551, allocations: 77.53 kB / 0.9549 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6551, allocations: 0 / 0.9549 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002566/0.6554, allocations: 40.06 kB / 0.9549 GB, free: 4.164 MB / 0.7169 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.0001764/0.6556, allocations: 129.1 kB / 0.955 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001633/0.6557, allocations: 67.33 kB / 0.9551 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6557, allocations: 96 / 0.9551 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.415e-05/0.6558, allocations: 45.27 kB / 0.9551 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.656, allocations: 5.109 kB / 0.9551 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005218/0.6566, allocations: 293.8 kB / 0.9554 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.6567, allocations: 0.6961 MB / 0.9561 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.481e-05/0.6567, allocations: 5.281 kB / 0.9561 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.252e-05/0.6568, allocations: 13.06 kB / 0.9561 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of SimCode: time 8.71e-07/0.6568, allocations: 0 / 0.9561 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of Templates: time 0.002844/0.6596, allocations: 0.9215 MB / 0.957 GB, free: 2.598 MB / 0.7169 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