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) 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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002211/0.002211, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.487/1.487, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.785/2.785, allocations: 472.6 MB / 0.7451 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 61.7 kB / 0.912 GB, free: 33.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3226, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002317/0.325, allocations: 1.27 MB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3261, allocations: 0.621 MB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.3262, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.05e-05/0.3262, allocations: 3.938 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.056e-05/0.3263, allocations: 3.984 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005791/0.3269, allocations: 147.4 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.897e-05/0.3269, allocations: 35.8 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.327, allocations: 7.938 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.67e-05/0.327, allocations: 15.98 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.178e-05/0.3271, allocations: 15.92 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.3271, allocations: 4 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005021/0.3276, allocations: 339.4 kB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.3276, allocations: 7.984 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.933e-05/0.3277, allocations: 15.88 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.3279, allocations: 152 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.328, allocations: 0 / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.322e-06/0.328, allocations: 4 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.328, allocations: 0 / 1.071 GB, free: 7.828 MB / 0.8262 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.0003844/0.3284, allocations: 371.4 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.3284, allocations: 8.031 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.587e-05/0.3284, allocations: 8.844 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.3285, allocations: 164.3 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3286, allocations: 8.375 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.3286, allocations: 8.359 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.3287, allocations: 50.25 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3287, allocations: 192 / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3288, allocations: 3.938 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3288, allocations: 4 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.904e-05/0.3288, allocations: 15.98 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001829/0.329, allocations: 165.6 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.3291, allocations: 62.5 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.375e-05/0.3292, allocations: 28.84 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3292, allocations: 4 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3292, allocations: 34.56 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.3292, allocations: 0 / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001136/0.3304, allocations: 0.5956 MB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.3304, allocations: 55.41 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.316e-05/0.3305, allocations: 97.94 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.3306, allocations: 33.64 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.3306, allocations: 84 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.653e-05/0.3307, allocations: 47.33 kB / 1.073 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.3307, allocations: 25.72 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.3308, allocations: 319 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.323e-05/0.3309, allocations: 24 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.913e-05/0.3309, allocations: 19.98 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.3311, allocations: 55.98 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3311, allocations: 3.984 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000146/0.3312, allocations: 97.53 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3312, allocations: 8 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3312, allocations: 0 / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3313, allocations: 0 / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3314, allocations: 27.92 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3314, allocations: 4 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.503e-05/0.3314, allocations: 4 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-06/0.3314, allocations: 7.938 kB / 1.073 GB, free: 5.109 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.003e-05/0.3315, allocations: 109.8 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.3316, allocations: 7.938 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.3318, allocations: 105.6 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3318, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3318, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3318, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004098/0.3322, allocations: 354.5 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3322, allocations: 4 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.3323, allocations: 23.92 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3323, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3324, allocations: 4 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3324, allocations: 4 kB / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3324, allocations: 0 / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.3326, allocations: 219.3 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.24e-05/0.3327, allocations: 85.05 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.3327, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.042e-05/0.3328, allocations: 3.984 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.659e-05/0.3328, allocations: 8 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.3328, allocations: 4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.593e-05/0.3329, allocations: 87.2 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3329, allocations: 3.938 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002733/0.3332, allocations: 32.16 kB / 1.074 GB, free: 3.957 MB / 0.8262 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.0002353/0.3334, allocations: 139.7 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.3336, allocations: 67.86 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3336, allocations: 0 / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.017e-05/0.3336, allocations: 35.98 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.3339, allocations: 6.031 kB / 1.074 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005791/0.3345, allocations: 293.5 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3347, allocations: 0.6846 MB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.542e-05/0.3348, allocations: 7.984 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.486e-05/0.3348, allocations: 19.44 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3348, allocations: 0 / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of Templates: time 0.003321/0.3382, allocations: 0.949 MB / 1.076 GB, free: 1.746 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) 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) "" 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