Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 87.69 kB / 20.24 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002375/0.002375, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.933/2.933, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.24e-05/3.418e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002708/0.002742, allocations: 1.317 MB / 0.7877 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.003951, allocations: 0.5799 MB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.003978, allocations: 0.6875 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.003996, allocations: 3.938 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.543e-05/0.004042, allocations: 8.891 kB / 0.7882 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.004668, allocations: 155.8 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.405e-05/0.004742, allocations: 29.58 kB / 0.7884 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.004783, allocations: 7.875 kB / 0.7884 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.102e-05/0.004834, allocations: 15.98 kB / 0.7884 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.004903, allocations: 11.97 kB / 0.7885 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.004922, allocations: 5.594 kB / 0.7885 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004869/0.005409, allocations: 267.4 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.014e-05/0.00543, allocations: 7.938 kB / 0.7887 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.156e-05/0.005471, allocations: 11.98 kB / 0.7887 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.005815, allocations: 166.9 kB / 0.7889 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.005819, allocations: 0 / 0.7889 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.052e-06/0.00582, allocations: 0 / 0.7889 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.005826, allocations: 0 / 0.7889 GB, free: 10.26 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005729/0.006399, allocations: 399.8 kB / 0.7893 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.006454, allocations: 12.03 kB / 0.7893 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.151e-05/0.006516, allocations: 8.891 kB / 0.7893 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.00664, allocations: 104.6 kB / 0.7894 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.006659, allocations: 8.375 kB / 0.7894 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.006687, allocations: 5.094 kB / 0.7894 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.00686, allocations: 101.6 kB / 0.7895 GB, free: 9.551 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.006874, allocations: 4.703 kB / 0.7895 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.006883, allocations: 5.094 kB / 0.7895 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.006888, allocations: 384 / 0.7895 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.432e-05/0.006952, allocations: 20.89 kB / 0.7895 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001979/0.00715, allocations: 120.6 kB / 0.7896 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.007279, allocations: 63.58 kB / 0.7897 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.243e-05/0.007331, allocations: 31.66 kB / 0.7897 GB, free: 9.262 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.007363, allocations: 1.375 kB / 0.7897 GB, free: 9.262 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.007406, allocations: 45.33 kB / 0.7898 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.007407, allocations: 0 / 0.7898 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.001259/0.008666, allocations: 478.5 kB / 0.7902 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.008709, allocations: 51.41 kB / 0.7903 GB, free: 8.617 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.008834, allocations: 158.8 kB / 0.7904 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.008858, allocations: 26.64 kB / 0.7905 GB, free: 8.414 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.008928, allocations: 130.9 kB / 0.7906 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/0.008996, allocations: 36.7 kB / 0.7906 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.009056, allocations: 39.36 kB / 0.7907 GB, free: 8.199 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002897/0.009345, allocations: 492.1 kB / 0.7911 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.935e-05/0.009405, allocations: 29.33 kB / 0.7912 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.6e-05/0.009451, allocations: 22.48 kB / 0.7912 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.009577, allocations: 63.62 kB / 0.7912 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.00958, allocations: 4 kB / 0.7912 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001855/0.009766, allocations: 104.7 kB / 0.7913 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.009788, allocations: 4 kB / 0.7913 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.009794, allocations: 0 / 0.7913 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.009818, allocations: 3.938 kB / 0.7914 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.009944, allocations: 20 kB / 0.7914 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.009956, allocations: 11.86 kB / 0.7914 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.009984, allocations: 4 kB / 0.7914 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.009995, allocations: 4 kB / 0.7914 GB, free: 7.438 MB / 0.7448 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.01014, allocations: 161.9 kB / 0.7915 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.219e-05/0.01016, allocations: 7.953 kB / 0.7916 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.01043, allocations: 102.4 kB / 0.7917 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.01044, allocations: 3.938 kB / 0.7917 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.01045, allocations: 4.547 kB / 0.7917 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.01045, allocations: 0 / 0.7917 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005551/0.011, allocations: 358.2 kB / 0.792 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.01101, allocations: 0 / 0.792 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.01113, allocations: 21.05 kB / 0.792 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.01113, allocations: 3.938 kB / 0.792 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.01114, allocations: 4 kB / 0.792 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.01115, allocations: 5 kB / 0.792 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-05/0.01116, allocations: 3.938 kB / 0.792 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.01154, allocations: 273.4 kB / 0.7923 GB, free: 6.441 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.122e-05/0.01155, allocations: 4 kB / 0.7923 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.01157, allocations: 3.938 kB / 0.7923 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.291e-05/0.01165, allocations: 4 kB / 0.7923 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.01169, allocations: 8.516 kB / 0.7923 GB, free: 6.422 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.0117, allocations: 4 kB / 0.7923 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.895e-05/0.01179, allocations: 119.9 kB / 0.7924 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01179, allocations: 0.8125 kB / 0.7924 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003702/0.01216, allocations: 35.88 kB / 0.7925 GB, free: 6.266 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * 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.0003278/0.01249, allocations: 144.9 kB / 0.7926 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002156/0.0127, allocations: 66.56 kB / 0.7927 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.01271, allocations: 0 / 0.7927 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.659e-05/0.01278, allocations: 51.55 kB / 0.7927 GB, free: 5.996 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.01302, allocations: 4.844 kB / 0.7927 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006925/0.01371, allocations: 263.8 kB / 0.793 GB, free: 5.723 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.056e-05/0.0138, allocations: 71.34 kB / 0.793 GB, free: 5.633 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.235e-05/0.01385, allocations: 15.98 kB / 0.7931 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.01389, allocations: 12.5 kB / 0.7931 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of SimCode: time 9.41e-07/0.01389, allocations: 0 / 0.7931 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of Templates: time 0.005249/0.01914, allocations: 0.9478 MB / 0.794 GB, free: 4.707 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time [Calling sys.exit(0), Time elapsed: 8.048720631981269]