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_dp_DerivativeCheck.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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.447/1.447, allocations: 249.5 MB / 257 MB, free: 6.848 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.001038/0.001038, allocations: 183.5 kB / 316.3 MB, free: 3.238 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.349/1.349, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.001032/0.001032, allocations: 90.53 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.603e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2053, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6654/0.8707, allocations: 132.7 MB / 1.015 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.8709, allocations: 80.75 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01107/0.882, allocations: 3.99 MB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8821, allocations: 0 / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.8821, allocations: 0 / 1.019 GB, free: 1.777 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002951/0.8824, allocations: 342.3 kB / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.8824, allocations: 8.031 kB / 1.019 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.8825, allocations: 0 / 1.019 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.8826, allocations: 174.8 kB / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.8826, allocations: 0 / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.8826, allocations: 0 / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.783e-05/0.8827, allocations: 8 kB / 1.019 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.758e-05/0.8828, allocations: 37.19 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.8828, allocations: 0 / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.8828, allocations: 8 kB / 1.019 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.8828, allocations: 0 / 1.019 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.883, allocations: 141.2 kB / 1.019 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.8831, allocations: 37.73 kB / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.062e-05/0.8832, allocations: 19.48 kB / 1.019 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.8832, allocations: 3.984 kB / 1.019 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.8832, allocations: 38.64 kB / 1.02 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.8832, allocations: 0 / 1.02 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0005266/0.8838, allocations: 276 kB / 1.02 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.8838, allocations: 55.41 kB / 1.02 GB, free: 484 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.881e-05/0.8839, allocations: 88.5 kB / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.8839, allocations: 25.7 kB / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.287e-05/0.8839, allocations: 84.14 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.884, allocations: 23.05 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.884, allocations: 0 / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.8841, allocations: 318.8 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.08e-05/0.8841, allocations: 7.5 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.754e-05/0.8842, allocations: 11.44 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.446e-05/0.8842, allocations: 14.8 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.8842, allocations: 0.9375 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.368e-05/0.8843, allocations: 64.16 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.8843, allocations: 8 kB / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.8843, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.8843, allocations: 7.984 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.847e-05/0.8844, allocations: 8 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.8844, allocations: 4 kB / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.8844, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.8844, allocations: 0 / 1.02 GB, free: 15.81 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 (7): * Single equations (assignments): 7 * 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.402e-05/0.8845, allocations: 104.9 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.8845, allocations: 8 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.8847, allocations: 75.7 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.8847, allocations: 4 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.8847, allocations: 0 / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.8847, allocations: 0 / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.8849, allocations: 289.8 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.885, allocations: 0 / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.885, allocations: 8 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.885, allocations: 0 / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.8851, allocations: 7.984 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8851, allocations: 0 / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8851, allocations: 4.031 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.8852, allocations: 183.3 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.8853, allocations: 81.14 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.8853, allocations: 3.984 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.119e-05/0.8854, allocations: 0 / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.701e-05/0.8854, allocations: 8 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.8854, allocations: 4 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.18e-05/0.8855, allocations: 82.16 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8855, allocations: 0 / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000257/0.8857, allocations: 27.98 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0002319/0.886, allocations: 123.2 kB / 1.021 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.901e-05/0.8861, allocations: 29.81 kB / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.8861, allocations: 3.938 kB / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.573e-05/0.8861, allocations: 22.31 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.8863, allocations: 7.938 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003096/0.8866, allocations: 136.3 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.8868, allocations: 0.6846 MB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.601e-05/0.8869, allocations: 8 kB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.8869, allocations: 15.38 kB / 1.022 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.8869, allocations: 0 / 1.022 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of Templates: time 0.002513/0.8894, allocations: 0.5697 MB / 1.023 GB, free: 13.28 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches