Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.3 MB / 240 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.814/2.814, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 8.156 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3585, allocations: 159.6 MB / 1.058 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001854/0.3604, allocations: 1.183 MB / 1.059 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.3616, allocations: 0.5806 MB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.427e-05/0.3617, allocations: 0 / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.148e-05/0.3617, allocations: 3.938 kB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.644e-05/0.3618, allocations: 7.938 kB / 1.06 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007173/0.3625, allocations: 142.4 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.978e-05/0.3626, allocations: 43.86 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.582e-05/0.3626, allocations: 3.906 kB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.23e-05/0.3627, allocations: 23.92 kB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.274e-05/0.3628, allocations: 27.89 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.3628, allocations: 8 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000547/0.3634, allocations: 339.3 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.3634, allocations: 8 kB / 1.06 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.751e-05/0.3634, allocations: 37.58 kB / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.3637, allocations: 120 kB / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3637, allocations: 0 / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.572e-06/0.3637, allocations: 0 / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.3637, allocations: 0 / 1.06 GB, free: 2.84 MB / 0.8106 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.0005943/0.3643, allocations: 395.1 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3643, allocations: 8.031 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.3644, allocations: 4 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.3645, allocations: 171.1 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3646, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.3646, allocations: 19.86 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.3649, allocations: 77.66 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.3649, allocations: 4 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.3649, allocations: 3.938 kB / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3649, allocations: 0 / 1.061 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.3652, allocations: 55.95 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006065/0.3658, allocations: 340.6 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.3661, allocations: 90.47 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.3662, allocations: 28.84 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.3662, allocations: 0 / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.3663, allocations: 46.48 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.3663, allocations: 0 / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001626/0.3679, allocations: 0.6657 MB / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.368, allocations: 55.36 kB / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.196e-05/0.368, allocations: 105.8 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.3681, allocations: 25.7 kB / 1.062 GB, free: 500 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/0.3681, allocations: 92.12 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.3682, allocations: 47.3 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.269e-06/0.3682, allocations: 0 / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3683, allocations: 314.8 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.3685, allocations: 39.98 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.3686, allocations: 35.98 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.3687, allocations: 41.86 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3687, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003055/0.369, allocations: 117.7 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3691, allocations: 8 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3691, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3691, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.3693, allocations: 31.92 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3693, allocations: 3.984 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/0.3693, allocations: 11.95 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.3694, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 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.577e-05/0.3694, allocations: 117.8 kB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.731e-05/0.3695, allocations: 7.906 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.3699, allocations: 129.8 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3699, allocations: 15.81 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3699, allocations: 0 / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3699, allocations: 4 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.3705, allocations: 390.4 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3705, allocations: 0 / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.3707, allocations: 27.98 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3707, allocations: 3.938 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3707, allocations: 4 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3707, allocations: 7.984 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3707, allocations: 3.953 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004862/0.3712, allocations: 259.5 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.3713, allocations: 89.05 kB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.3713, allocations: 3.984 kB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.3714, allocations: 8 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.069e-05/0.3714, allocations: 11.94 kB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3714, allocations: 8 kB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.023e-05/0.3715, allocations: 79.28 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3715, allocations: 0 / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003122/0.3718, allocations: 51.98 kB / 1.064 GB, free: 14.43 MB / 0.8262 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 () * 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.000248/0.3721, allocations: 131.1 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003084/0.3724, allocations: 92.33 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3724, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3725, allocations: 55.91 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3729, allocations: 8.219 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006957/0.3736, allocations: 377.4 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.3738, allocations: 0.6926 MB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.687e-05/0.3739, allocations: 20.59 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.36e-05/0.374, allocations: 15.42 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.374, allocations: 3.938 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.003527/0.3775, allocations: 1.062 MB / 1.067 GB, free: 11.96 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches