Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 189.3 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.911/2.911, allocations: 495.7 MB / 0.7831 GB, free: 33.53 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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_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.",fileNamePrefix="Buildings_latest_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.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 66.77 kB / 1.137 GB, free: 33.68 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3101, allocations: 173.6 MB / 1.307 GB, free: 1.781 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002476/0.3125, allocations: 1.308 MB / 1.308 GB, free: 476 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001083/0.3136, allocations: 0.6109 MB / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 2.453e-05/0.3136, allocations: 8 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.3137, allocations: 3.938 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 3.557e-05/0.3137, allocations: 7.922 kB / 1.309 GB, free: 15.83 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.3142, allocations: 147.4 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.3143, allocations: 27.92 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.3143, allocations: 3.984 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 2.899e-05/0.3144, allocations: 19.92 kB / 1.309 GB, free: 15.64 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 5.864e-05/0.3144, allocations: 11.92 kB / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.3144, allocations: 4 kB / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0006004/0.315, allocations: 347.3 kB / 1.309 GB, free: 15.28 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.3151, allocations: 7.984 kB / 1.309 GB, free: 15.27 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 3.742e-05/0.3151, allocations: 11.94 kB / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003174/0.3154, allocations: 155.5 kB / 1.31 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3154, allocations: 0 / 1.31 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.715e-06/0.3154, allocations: 0 / 1.31 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.414e-06/0.3154, allocations: 0 / 1.31 GB, free: 15.11 MB / 1.014 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.0006575/0.3161, allocations: 290 kB / 1.31 GB, free: 14.79 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/0.3162, allocations: 16.92 kB / 1.31 GB, free: 14.78 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.837e-05/0.3162, allocations: 4.891 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.3164, allocations: 110.5 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3164, allocations: 384 / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.3164, allocations: 4.375 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.3166, allocations: 50.25 kB / 1.31 GB, free: 14.58 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.3166, allocations: 192 / 1.31 GB, free: 14.58 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.3167, allocations: 3.938 kB / 1.31 GB, free: 14.58 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.3167, allocations: 0 / 1.31 GB, free: 14.58 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.016e-05/0.3167, allocations: 23.92 kB / 1.31 GB, free: 14.55 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002423/0.317, allocations: 144.7 kB / 1.31 GB, free: 14.37 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.3171, allocations: 54.56 kB / 1.31 GB, free: 14.31 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 5.162e-05/0.3171, allocations: 28.84 kB / 1.31 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.3172, allocations: 3.938 kB / 1.31 GB, free: 14.27 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3172, allocations: 34.8 kB / 1.31 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.3172, allocations: 0 / 1.31 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11): time 0.00129/0.3185, allocations: 459.5 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.3185, allocations: 51.41 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.744e-05/0.3186, allocations: 93.86 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.3187, allocations: 29.7 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.3187, allocations: 88.2 kB / 1.311 GB, free: 13.44 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 5.822e-05/0.3188, allocations: 43.61 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.3188, allocations: 29.7 kB / 1.311 GB, free: 13.36 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001663/0.319, allocations: 318.8 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.892e-05/0.319, allocations: 23.98 kB / 1.311 GB, free: 13.02 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.928e-05/0.3191, allocations: 20 kB / 1.311 GB, free: 13 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.3192, allocations: 55.84 kB / 1.311 GB, free: 12.94 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.3192, allocations: 0 / 1.311 GB, free: 12.94 MB / 1.014 GB
Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001552/0.3193, allocations: 113.5 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3194, allocations: 5.875 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3194, allocations: 0 / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3194, allocations: 0 / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.3195, allocations: 23.98 kB / 1.312 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3195, allocations: 3.984 kB / 1.312 GB, free: 12.79 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.543e-05/0.3195, allocations: 4 kB / 1.312 GB, free: 12.79 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3195, allocations: 4 kB / 1.312 GB, free: 12.79 MB / 1.014 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.000107/0.3196, allocations: 117.8 kB / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/0.3197, allocations: 19.81 kB / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002177/0.3199, allocations: 105.7 kB / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3199, allocations: 0 / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3199, allocations: 0 / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3199, allocations: 0 / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004581/0.3203, allocations: 325.7 kB / 1.312 GB, free: 12.16 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3204, allocations: 0 / 1.312 GB, free: 12.16 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3205, allocations: 19.98 kB / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3205, allocations: 4 kB / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.3205, allocations: 0 / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3205, allocations: 4 kB / 1.312 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3205, allocations: 0 / 1.312 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3208, allocations: 227.4 kB / 1.312 GB, free: 11.89 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 6.603e-06/0.3208, allocations: 3.938 kB / 1.312 GB, free: 11.89 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.3208, allocations: 8.031 kB / 1.312 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.3209, allocations: 0 / 1.312 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.3209, allocations: 7.984 kB / 1.312 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.3209, allocations: 8.062 kB / 1.312 GB, free: 11.87 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.277e-05/0.321, allocations: 79.28 kB / 1.312 GB, free: 11.79 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.321, allocations: 0 / 1.312 GB, free: 11.79 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002678/0.3212, allocations: 35.88 kB / 1.313 GB, free: 11.75 MB / 1.014 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.0002301/0.3215, allocations: 131.9 kB / 1.313 GB, free: 11.62 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0001817/0.3216, allocations: 67.78 kB / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3216, allocations: 0 / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 5.028e-05/0.3217, allocations: 28.09 kB / 1.313 GB, free: 11.52 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.3219, allocations: 14.84 kB / 1.313 GB, free: 11.51 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005894/0.3225, allocations: 284.9 kB / 1.313 GB, free: 11.21 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.3228, allocations: 0.6885 MB / 1.314 GB, free: 10.49 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.335e-05/0.3229, allocations: 8 kB / 1.314 GB, free: 10.48 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.3229, allocations: 15.44 kB / 1.314 GB, free: 10.47 MB / 1.014 GB
Notification: Performance of SimCode: time 3.61e-07/0.3229, allocations: 0 / 1.314 GB, free: 10.47 MB / 1.014 GB
Notification: Performance of Templates: time 0.003798/0.3267, allocations: 1.012 MB / 1.315 GB, free: 9.492 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 7.99351002369076]