Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002059/0.00206, allocations: 105.7 kB / 16.35 MB, free: 5.824 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.002028/0.002028, allocations: 189.4 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.584/2.584, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.001481, allocations: 68.58 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3816, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002983/0.3846, allocations: 1.276 MB / 1.028 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3859, allocations: 0.6173 MB / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.611e-05/0.3859, allocations: 0 / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.214e-05/0.3859, allocations: 3.938 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.075e-05/0.386, allocations: 4 kB / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.3866, allocations: 159.3 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.3866, allocations: 15.94 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.927e-05/0.3867, allocations: 7.938 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.835e-05/0.3867, allocations: 11.98 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.818e-05/0.3868, allocations: 3.938 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.3868, allocations: 7.938 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006495/0.3875, allocations: 339.4 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.3875, allocations: 4 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.3875, allocations: 11.92 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.3878, allocations: 147.7 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3878, allocations: 4 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3878, allocations: 0 / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.3878, allocations: 0 / 1.029 GB, free: 15.42 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005435/0.3884, allocations: 363.4 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3884, allocations: 8.031 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.3885, allocations: 4.938 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.3886, allocations: 168.2 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.3886, allocations: 384 / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.3887, allocations: 4.375 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.3888, allocations: 42.25 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.485e-06/0.3888, allocations: 192 / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.3888, allocations: 7.938 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.3888, allocations: 0 / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.279e-05/0.3889, allocations: 11.98 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001878/0.3891, allocations: 157.7 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.3893, allocations: 50.44 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.65e-05/0.3893, allocations: 20.86 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3893, allocations: 0 / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3894, allocations: 30.56 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.3894, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006558/0.39, allocations: 318.2 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.3901, allocations: 51.41 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.691e-05/0.3902, allocations: 98.17 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.3902, allocations: 29.7 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.3902, allocations: 84.14 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.3902, allocations: 19.7 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.627e-05/0.3903, allocations: 21.7 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002368/0.3906, allocations: 314.8 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.193e-05/0.3906, allocations: 15.98 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.006e-05/0.3906, allocations: 11.94 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.594e-05/0.3907, allocations: 28.86 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.3907, allocations: 8 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.546e-05/0.3908, allocations: 57.84 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3908, allocations: 15.88 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3908, allocations: 80 / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3909, allocations: 0 / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.877e-05/0.3909, allocations: 11.98 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3909, allocations: 7.922 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.391, allocations: 8 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.391, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.692e-05/0.391, allocations: 113.8 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.3911, allocations: 7.844 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.3912, allocations: 73.64 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3912, allocations: 4 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3912, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3912, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/0.3916, allocations: 311.4 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3916, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.498e-05/0.3917, allocations: 15.98 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3917, allocations: 4.031 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3917, allocations: 192 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.3917, allocations: 7.938 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3917, allocations: 0 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.392, allocations: 180.3 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.508e-05/0.392, allocations: 89 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.3921, allocations: 7.969 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.826e-05/0.3921, allocations: 4.062 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.977e-05/0.3922, allocations: 7.984 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.3922, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.664e-05/0.3923, allocations: 83.28 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3923, allocations: 0 / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002375/0.3925, allocations: 23.94 kB / 1.032 GB, free: 12.19 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001894/0.3927, allocations: 119.2 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.3928, allocations: 35.98 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3928, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.189e-05/0.3929, allocations: 23.92 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.3931, allocations: 8.75 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004168/0.3935, allocations: 203.2 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.3939, allocations: 0.6768 MB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.74e-05/0.3939, allocations: 4 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.23e-05/0.3939, allocations: 11.44 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3939, allocations: 3.938 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of Templates: time 0.003036/0.397, allocations: 0.6293 MB / 1.034 GB, free: 10.45 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches