Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_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_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.268/2.268, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001223/0.001223, allocations: 187.3 kB / 498.1 MB, free: 5.734 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.607/1.607, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009837/0.0009841, allocations: 90.73 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004029, allocations: 10.69 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3703, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1942/0.5646, allocations: 150.1 MB / 1.369 GB, free: 12 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5649, allocations: 83.94 kB / 1.37 GB, free: 11.92 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.012/0.5769, allocations: 4.053 MB / 1.373 GB, free: 7.859 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.314e-06/0.577, allocations: 4 kB / 1.373 GB, free: 7.855 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.577, allocations: 0 / 1.373 GB, free: 7.855 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003539/0.5774, allocations: 343.2 kB / 1.374 GB, free: 7.473 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.991e-05/0.5775, allocations: 8.031 kB / 1.374 GB, free: 7.465 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.296e-05/0.5775, allocations: 15.84 kB / 1.374 GB, free: 7.449 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.5776, allocations: 159.1 kB / 1.374 GB, free: 7.254 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.5777, allocations: 4 kB / 1.374 GB, free: 7.25 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.5777, allocations: 4 kB / 1.374 GB, free: 7.246 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.5778, allocations: 37.69 kB / 1.374 GB, free: 7.203 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5778, allocations: 4 kB / 1.374 GB, free: 7.199 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5779, allocations: 0 / 1.374 GB, free: 7.199 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.5779, allocations: 4 kB / 1.374 GB, free: 7.195 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.999e-05/0.5779, allocations: 15.86 kB / 1.374 GB, free: 7.18 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.5781, allocations: 161.6 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.5783, allocations: 42.61 kB / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.5783, allocations: 0 / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.5784, allocations: 34.56 kB / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.5784, allocations: 0 / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0006565/0.579, allocations: 314.3 kB / 1.375 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.5791, allocations: 55.41 kB / 1.375 GB, free: 6.453 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.675e-05/0.5791, allocations: 92.94 kB / 1.375 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.5792, allocations: 29.7 kB / 1.375 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/0.5792, allocations: 80.14 kB / 1.375 GB, free: 6.238 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.5793, allocations: 27.64 kB / 1.375 GB, free: 6.211 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.5793, allocations: 4 kB / 1.375 GB, free: 6.207 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5794, allocations: 314.8 kB / 1.375 GB, free: 5.891 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.291e-05/0.5794, allocations: 8 kB / 1.375 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.375e-05/0.5794, allocations: 15.98 kB / 1.375 GB, free: 5.867 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.949e-05/0.5795, allocations: 12 kB / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5795, allocations: 0 / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001072/0.5796, allocations: 73.53 kB / 1.375 GB, free: 5.777 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.5796, allocations: 4 kB / 1.375 GB, free: 5.773 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.5796, allocations: 4 kB / 1.375 GB, free: 5.77 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.5797, allocations: 0 / 1.375 GB, free: 5.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.326e-05/0.5797, allocations: 11.94 kB / 1.375 GB, free: 5.758 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5797, allocations: 4 kB / 1.375 GB, free: 5.754 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.5797, allocations: 0 / 1.375 GB, free: 5.754 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.5798, allocations: 0.5156 kB / 1.375 GB, free: 5.754 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 (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 8.133e-05/0.5798, allocations: 121.8 kB / 1.375 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-06/0.5799, allocations: 0 / 1.375 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.58, allocations: 69.66 kB / 1.375 GB, free: 5.547 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.58, allocations: 4 kB / 1.375 GB, free: 5.543 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.58, allocations: 0 / 1.375 GB, free: 5.543 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.58, allocations: 3.984 kB / 1.375 GB, free: 5.539 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.5804, allocations: 319.3 kB / 1.376 GB, free: 5.168 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5804, allocations: 3.938 kB / 1.376 GB, free: 5.164 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.1e-05/0.5805, allocations: 12 kB / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.5805, allocations: 3.938 kB / 1.376 GB, free: 5.148 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.5805, allocations: 4 kB / 1.376 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5805, allocations: 4.031 kB / 1.376 GB, free: 5.141 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5805, allocations: 4.188 kB / 1.376 GB, free: 5.137 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.5807, allocations: 194 kB / 1.376 GB, free: 4.922 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.5808, allocations: 77.11 kB / 1.376 GB, free: 4.828 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.5808, allocations: 8.016 kB / 1.376 GB, free: 4.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.202e-05/0.5808, allocations: 0 / 1.376 GB, free: 4.82 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.007e-05/0.5809, allocations: 16.02 kB / 1.376 GB, free: 4.805 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.5809, allocations: 0 / 1.376 GB, free: 4.805 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.548e-05/0.5809, allocations: 79.28 kB / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.5809, allocations: 0 / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002524/0.5812, allocations: 35.92 kB / 1.376 GB, free: 4.691 MB / 0.8698 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 () * Number of clocked 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.0002074/0.5814, allocations: 134.8 kB / 1.376 GB, free: 4.547 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001084/0.5815, allocations: 31.98 kB / 1.376 GB, free: 4.516 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5815, allocations: 4 kB / 1.376 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 2.759e-05/0.5816, allocations: 19.94 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.5817, allocations: 10.22 kB / 1.376 GB, free: 4.484 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.5821, allocations: 213.8 kB / 1.377 GB, free: 4.25 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.5824, allocations: 0.6809 MB / 1.377 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.623e-05/0.5824, allocations: 7.984 kB / 1.377 GB, free: 3.535 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/0.5825, allocations: 15.38 kB / 1.377 GB, free: 3.52 MB / 0.8698 GB Notification: Performance of SimCode: time 2.1e-07/0.5825, allocations: 0 / 1.377 GB, free: 3.52 MB / 0.8698 GB Notification: Performance of Templates: time 0.002822/0.5853, allocations: 0.5742 MB / 1.378 GB, free: 2.977 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches