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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.482/2.482, allocations: 390.3 MB / 405.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 185 kB / 498.1 MB, free: 5.75 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000918/0.0009183, allocations: 96.31 kB / 0.9346 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003751/0.0003755, allocations: 13.59 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2977, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.4834, allocations: 150.2 MB / 1.37 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.4836, allocations: 83.89 kB / 1.37 GB, free: 11.84 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01336/0.497, allocations: 4.56 MB / 1.374 GB, free: 7.277 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.744e-06/0.497, allocations: 0 / 1.374 GB, free: 7.277 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.497, allocations: 0 / 1.374 GB, free: 7.277 MB / 0.8698 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.0003591/0.4974, allocations: 355.2 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.4974, allocations: 12.03 kB / 1.374 GB, free: 6.871 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.4975, allocations: 15.84 kB / 1.374 GB, free: 6.855 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.4976, allocations: 159.1 kB / 1.375 GB, free: 6.66 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.4976, allocations: 7.938 kB / 1.375 GB, free: 6.652 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.4977, allocations: 4 kB / 1.375 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.4978, allocations: 49.69 kB / 1.375 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4978, allocations: 0 / 1.375 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.4978, allocations: 0 / 1.375 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4978, allocations: 0 / 1.375 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.306e-05/0.4979, allocations: 23.98 kB / 1.375 GB, free: 6.57 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002005/0.4981, allocations: 177.6 kB / 1.375 GB, free: 6.348 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.4982, allocations: 58.5 kB / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.4983, allocations: 0 / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.4983, allocations: 34.56 kB / 1.375 GB, free: 6.238 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.4983, allocations: 0 / 1.375 GB, free: 6.238 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.001115/0.4994, allocations: 0.5917 MB / 1.376 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.4995, allocations: 51.41 kB / 1.376 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.61e-05/0.4995, allocations: 89 kB / 1.376 GB, free: 5.398 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.4995, allocations: 29.7 kB / 1.376 GB, free: 5.363 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.4996, allocations: 84.27 kB / 1.376 GB, free: 5.277 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.4996, allocations: 35.45 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-06/0.4996, allocations: 4 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4998, allocations: 322.8 kB / 1.376 GB, free: 4.914 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.793e-05/0.4998, allocations: 20 kB / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.412e-05/0.4999, allocations: 19.98 kB / 1.376 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.739e-05/0.4999, allocations: 24 kB / 1.376 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4999, allocations: 0 / 1.376 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001359/0.5001, allocations: 105.5 kB / 1.376 GB, free: 4.742 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.5001, allocations: 8 kB / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.5001, allocations: 4 kB / 1.376 GB, free: 4.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.5001, allocations: 0 / 1.376 GB, free: 4.73 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.5002, allocations: 20 kB / 1.376 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.5002, allocations: 3.984 kB / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.5003, allocations: 0 / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.5003, allocations: 4 kB / 1.376 GB, free: 4.703 MB / 0.8698 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 8.485e-05/0.5004, allocations: 117.7 kB / 1.376 GB, free: 4.578 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.5004, allocations: 7.938 kB / 1.376 GB, free: 4.57 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.5006, allocations: 109.7 kB / 1.377 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5006, allocations: 7.984 kB / 1.377 GB, free: 4.445 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.5006, allocations: 0 / 1.377 GB, free: 4.445 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5006, allocations: 3.984 kB / 1.377 GB, free: 4.441 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003966/0.501, allocations: 354.4 kB / 1.377 GB, free: 4.039 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.501, allocations: 0 / 1.377 GB, free: 4.039 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.5011, allocations: 20 kB / 1.377 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5011, allocations: 0 / 1.377 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.5012, allocations: 4 kB / 1.377 GB, free: 4.016 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.5012, allocations: 8 kB / 1.377 GB, free: 4.008 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5012, allocations: 3.984 kB / 1.377 GB, free: 4.004 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.5014, allocations: 219.3 kB / 1.377 GB, free: 3.773 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.5015, allocations: 81.02 kB / 1.377 GB, free: 3.676 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.5015, allocations: 8.031 kB / 1.377 GB, free: 3.668 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.5016, allocations: 0 / 1.377 GB, free: 3.668 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.244e-05/0.5016, allocations: 11.98 kB / 1.377 GB, free: 3.656 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.5016, allocations: 4 kB / 1.377 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 2.969e-05/0.5017, allocations: 79.34 kB / 1.377 GB, free: 3.574 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5017, allocations: 0 / 1.377 GB, free: 3.574 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002699/0.5019, allocations: 51.88 kB / 1.377 GB, free: 3.523 MB / 0.8698 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.0002209/0.5022, allocations: 139.2 kB / 1.377 GB, free: 3.375 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001269/0.5023, allocations: 59.92 kB / 1.378 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5023, allocations: 0 / 1.378 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.015e-05/0.5024, allocations: 39.86 kB / 1.378 GB, free: 3.277 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.5025, allocations: 10.33 kB / 1.378 GB, free: 3.27 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.503, allocations: 320.7 kB / 1.378 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.5033, allocations: 0.6926 MB / 1.379 GB, free: 2.207 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.907e-05/0.5034, allocations: 19.92 kB / 1.379 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.511e-05/0.5034, allocations: 15.44 kB / 1.379 GB, free: 2.172 MB / 0.8698 GB Notification: Performance of SimCode: time 2.01e-07/0.5034, allocations: 0 / 1.379 GB, free: 2.172 MB / 0.8698 GB Notification: Performance of Templates: time 0.002855/0.5063, allocations: 0.8485 MB / 1.379 GB, free: 1.355 MB / 0.8698 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","../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