Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.387/1.387, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009886/0.0009885, allocations: 180 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.3 MB / 0.5671 GB, free: 15.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008352/0.0008352, allocations: 93.91 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.418e-05/1.42e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.17, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5914/0.7615, allocations: 133.5 MB / 1.016 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.7618, allocations: 81.94 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01245/0.7742, allocations: 4.251 MB / 1.02 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.382e-06/0.7743, allocations: 0 / 1.02 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.7743, allocations: 0 / 1.02 GB, free: 0.7617 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004173/0.7747, allocations: 370.8 kB / 1.02 GB, free: 372 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.7747, allocations: 12.03 kB / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.7748, allocations: 8.75 kB / 1.02 GB, free: 352 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.7749, allocations: 171.8 kB / 1.02 GB, free: 140 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.7749, allocations: 8 kB / 1.02 GB, free: 132 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.996e-05/0.775, allocations: 4 kB / 1.02 GB, free: 128 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.634e-05/0.7751, allocations: 24.81 kB / 1.02 GB, free: 112 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.7752, allocations: 62.05 kB / 1.02 GB, free: 52 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.7752, allocations: 0 / 1.02 GB, free: 52 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.7752, allocations: 0 / 1.02 GB, free: 52 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.7752, allocations: 0 / 1.02 GB, free: 52 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.7758, allocations: 312.7 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.556e-05/0.7759, allocations: 56.94 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.787e-05/0.7759, allocations: 16.55 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.7759, allocations: 4 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.776, allocations: 34.56 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.776, allocations: 0 / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0008142/0.7768, allocations: 0.5289 MB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.7768, allocations: 55.41 kB / 1.021 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.588e-05/0.7769, allocations: 92.69 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.7769, allocations: 25.7 kB / 1.021 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.777, allocations: 92.03 kB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.777, allocations: 42.77 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-06/0.777, allocations: 0 / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.106e-05/0.7771, allocations: 310.8 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.477e-05/0.7771, allocations: 19.25 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.7772, allocations: 19.38 kB / 1.022 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.405e-05/0.7772, allocations: 31.42 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.7772, allocations: 0 / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001299/0.7774, allocations: 89.14 kB / 1.022 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.7774, allocations: 8 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.7774, allocations: 4 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.7774, allocations: 4.141 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.7776, allocations: 31.61 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.7776, allocations: 4 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.7777, allocations: 4 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.7777, allocations: 7.984 kB / 1.022 GB, free: 14.2 MB / 0.6511 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 () * 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 6.788e-05/0.7778, allocations: 108.9 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.7778, allocations: 7.984 kB / 1.022 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.778, allocations: 100.7 kB / 1.022 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.778, allocations: 0 / 1.022 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.778, allocations: 3.953 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.778, allocations: 0 / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.7784, allocations: 332.3 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.7784, allocations: 3.984 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.7785, allocations: 31.98 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7786, allocations: 0 / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.7786, allocations: 3.562 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.7786, allocations: 3.953 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7786, allocations: 0 / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000213/0.7788, allocations: 218.6 kB / 1.023 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.7788, allocations: 77.11 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.7789, allocations: 4.094 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.779, allocations: 11.98 kB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.37e-05/0.779, allocations: 11.94 kB / 1.023 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.779, allocations: 4 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 2.77e-05/0.7791, allocations: 78.72 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7791, allocations: 4 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002774/0.7794, allocations: 35.94 kB / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete 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.0002345/0.7796, allocations: 139.2 kB / 1.023 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001253/0.7797, allocations: 64.11 kB / 1.023 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7798, allocations: 0 / 1.023 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.517e-05/0.7798, allocations: 35.19 kB / 1.023 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.78, allocations: 8.156 kB / 1.023 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004296/0.7804, allocations: 243.2 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.7807, allocations: 0.6963 MB / 1.024 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.479e-05/0.7807, allocations: 12.61 kB / 1.024 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.7808, allocations: 19.42 kB / 1.024 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.7808, allocations: 0 / 1.024 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of Templates: time 0.002975/0.7838, allocations: 1.008 MB / 1.025 GB, free: 10.98 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches