Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.286/2.286, 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.001152/0.001152, allocations: 177.1 kB / 498.1 MB, free: 5.742 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.483/1.483, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.0009621/0.0009623, allocations: 100.3 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003706, allocations: 9.125 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2959, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/0.4918, allocations: 150 MB / 1.369 GB, free: 12.12 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003579/0.4922, allocations: 83.89 kB / 1.369 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009519/0.5018, allocations: 2.867 MB / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.098e-06/0.5019, allocations: 0 / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.5019, allocations: 0 / 1.372 GB, free: 9.172 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.000459/0.5024, allocations: 355.2 kB / 1.373 GB, free: 8.777 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.5024, allocations: 8.031 kB / 1.373 GB, free: 8.77 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/0.5025, allocations: 11.86 kB / 1.373 GB, free: 8.758 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.5026, allocations: 167 kB / 1.373 GB, free: 8.555 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.5027, allocations: 0 / 1.373 GB, free: 8.555 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.5027, allocations: 4 kB / 1.373 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.5029, allocations: 33.7 kB / 1.373 GB, free: 8.512 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.5029, allocations: 3.984 kB / 1.373 GB, free: 8.508 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.5029, allocations: 4 kB / 1.373 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.5029, allocations: 4 kB / 1.373 GB, free: 8.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.792e-05/0.503, allocations: 8 kB / 1.373 GB, free: 8.492 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002389/0.5032, allocations: 169.5 kB / 1.373 GB, free: 8.277 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.5035, allocations: 50.53 kB / 1.373 GB, free: 8.219 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.5035, allocations: 0 / 1.373 GB, free: 8.219 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.5035, allocations: 30.56 kB / 1.373 GB, free: 8.18 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.5036, allocations: 4 kB / 1.373 GB, free: 8.176 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0007772/0.5043, allocations: 311 kB / 1.373 GB, free: 7.82 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.5044, allocations: 51.41 kB / 1.373 GB, free: 7.758 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.461e-05/0.5045, allocations: 89 kB / 1.373 GB, free: 7.664 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.5045, allocations: 25.7 kB / 1.373 GB, free: 7.633 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.5046, allocations: 80.14 kB / 1.374 GB, free: 7.551 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.5046, allocations: 27.64 kB / 1.374 GB, free: 7.523 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.5046, allocations: 0 / 1.374 GB, free: 7.523 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5048, allocations: 322.8 kB / 1.374 GB, free: 7.199 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.211e-05/0.5048, allocations: 15.94 kB / 1.374 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.5048, allocations: 11.92 kB / 1.374 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.824e-05/0.5049, allocations: 16 kB / 1.374 GB, free: 7.156 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.5049, allocations: 0 / 1.374 GB, free: 7.156 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001155/0.505, allocations: 73.72 kB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.505, allocations: 5.25 kB / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.505, allocations: 0 / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.5051, allocations: 3.938 kB / 1.374 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.808e-05/0.5051, allocations: 16 kB / 1.374 GB, free: 7.055 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.5051, allocations: 0 / 1.374 GB, free: 7.055 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.932e-05/0.5052, allocations: 0 / 1.374 GB, free: 7.055 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.5052, allocations: 4 kB / 1.374 GB, free: 7.051 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 0.0001012/0.5053, allocations: 121.7 kB / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.5053, allocations: 0 / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.5055, allocations: 69.66 kB / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.5055, allocations: 0 / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.5055, allocations: 0 / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.5055, allocations: 7.984 kB / 1.374 GB, free: 6.836 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000353/0.5059, allocations: 315.4 kB / 1.375 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5059, allocations: 0 / 1.375 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.632e-05/0.5059, allocations: 12 kB / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.506, allocations: 0 / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.506, allocations: 0 / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.506, allocations: 4 kB / 1.375 GB, free: 6.453 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.506, allocations: 0 / 1.375 GB, free: 6.453 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.5062, allocations: 197.9 kB / 1.375 GB, free: 6.234 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.5063, allocations: 85.12 kB / 1.375 GB, free: 6.133 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.5063, allocations: 4.25 kB / 1.375 GB, free: 6.129 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.467e-05/0.5064, allocations: 4 kB / 1.375 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.5064, allocations: 7.953 kB / 1.375 GB, free: 6.117 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.5064, allocations: 0 / 1.375 GB, free: 6.117 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.831e-05/0.5064, allocations: 87.84 kB / 1.375 GB, free: 6.031 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5064, allocations: 3.938 kB / 1.375 GB, free: 6.027 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002486/0.5067, allocations: 24 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0002487/0.507, allocations: 129.3 kB / 1.375 GB, free: 5.867 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001115/0.5071, allocations: 35.92 kB / 1.375 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5071, allocations: 0 / 1.375 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.5071, allocations: 23.88 kB / 1.375 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.5073, allocations: 2.234 kB / 1.375 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.5078, allocations: 229.6 kB / 1.375 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.5081, allocations: 0.6809 MB / 1.376 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.597e-05/0.5081, allocations: 4 kB / 1.376 GB, free: 4.848 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/0.5081, allocations: 15.42 kB / 1.376 GB, free: 4.832 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.5081, allocations: 0 / 1.376 GB, free: 4.832 MB / 0.8698 GB Notification: Performance of Templates: time 0.003018/0.5112, allocations: 0.5911 MB / 1.377 GB, free: 4.27 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches