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.008318/0.008318, allocations: 97.38 kB / 15.73 MB, free: 5.949 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.001643/0.001644, allocations: 193.6 kB / 16.67 MB, free: 5.871 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.743/2.743, allocations: 472.7 MB / 0.7453 GB, free: 464 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 63.91 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8042/0.8057, allocations: 159.9 MB / 1.226 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002278/0.808, allocations: 1.284 MB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.8091, allocations: 0.6189 MB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.8091, allocations: 0 / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.01e-05/0.8091, allocations: 3.938 kB / 1.228 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.516e-05/0.8092, allocations: 3.984 kB / 1.228 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005978/0.8098, allocations: 150.1 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.5e-05/0.8099, allocations: 27.92 kB / 1.228 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.388e-05/0.8099, allocations: 7.875 kB / 1.228 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.885e-05/0.81, allocations: 19.98 kB / 1.228 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.81, allocations: 19.91 kB / 1.228 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.8101, allocations: 4 kB / 1.228 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000541/0.8106, allocations: 331.4 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.8106, allocations: 11.97 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.8107, allocations: 11.94 kB / 1.228 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.8109, allocations: 156 kB / 1.228 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.811, allocations: 0 / 1.228 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.042e-06/0.811, allocations: 0 / 1.228 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.811, allocations: 3.938 kB / 1.228 GB, free: 10.81 MB / 0.9512 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.0003878/0.8114, allocations: 379 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.8114, allocations: 8.031 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.8115, allocations: 8.891 kB / 1.229 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.8116, allocations: 164.3 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.8116, allocations: 4.312 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.8116, allocations: 8.375 kB / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.8117, allocations: 50.23 kB / 1.229 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.8118, allocations: 192 / 1.229 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.8118, allocations: 3.938 kB / 1.229 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.8118, allocations: 8 kB / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.266e-05/0.8119, allocations: 15.98 kB / 1.229 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001831/0.812, allocations: 161.7 kB / 1.229 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.8122, allocations: 62.5 kB / 1.229 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.8122, allocations: 28.84 kB / 1.229 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.8122, allocations: 0 / 1.229 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.8123, allocations: 38.56 kB / 1.229 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.8123, allocations: 4 kB / 1.229 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001097/0.8134, allocations: 0.5839 MB / 1.23 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.8134, allocations: 55.41 kB / 1.23 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.8135, allocations: 105.8 kB / 1.23 GB, free: 8.863 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.8135, allocations: 25.7 kB / 1.23 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.8136, allocations: 84.14 kB / 1.23 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.8136, allocations: 35.69 kB / 1.23 GB, free: 8.711 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.8136, allocations: 29.66 kB / 1.23 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.8137, allocations: 318.8 kB / 1.23 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.285e-05/0.8138, allocations: 20 kB / 1.23 GB, free: 8.336 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.605e-05/0.8138, allocations: 19.98 kB / 1.23 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.991e-05/0.8139, allocations: 60.98 kB / 1.23 GB, free: 8.254 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.8139, allocations: 0 / 1.23 GB, free: 8.254 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001427/0.8141, allocations: 105.2 kB / 1.231 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.8141, allocations: 13.5 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.8141, allocations: 0 / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.8141, allocations: 0 / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.8143, allocations: 23.92 kB / 1.231 GB, free: 8.113 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.8143, allocations: 4 kB / 1.231 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.8143, allocations: 0 / 1.231 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.8143, allocations: 8 kB / 1.231 GB, free: 8.102 MB / 0.9512 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 7.251e-05/0.8144, allocations: 114.4 kB / 1.231 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.8144, allocations: 11.89 kB / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001918/0.8146, allocations: 113.6 kB / 1.231 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.8146, allocations: 4 kB / 1.231 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.8146, allocations: 0 / 1.231 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.8146, allocations: 0 / 1.231 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/0.8151, allocations: 354.5 kB / 1.231 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8151, allocations: 0 / 1.231 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.8152, allocations: 23.94 kB / 1.231 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.8152, allocations: 3.984 kB / 1.231 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.8152, allocations: 4 kB / 1.231 GB, free: 7.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.8152, allocations: 4 kB / 1.231 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.8152, allocations: 0 / 1.231 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.8155, allocations: 211.4 kB / 1.231 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.76e-05/0.8155, allocations: 81.14 kB / 1.231 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.8155, allocations: 0 / 1.231 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.959e-05/0.8156, allocations: 8.047 kB / 1.231 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.8157, allocations: 8 kB / 1.231 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.8157, allocations: 4 kB / 1.231 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.761e-05/0.8157, allocations: 91.14 kB / 1.232 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8157, allocations: 0 / 1.232 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002765/0.816, allocations: 35.88 kB / 1.232 GB, free: 6.941 MB / 0.9512 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.0002127/0.8162, allocations: 135 kB / 1.232 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.8164, allocations: 64 kB / 1.232 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.8164, allocations: 4 kB / 1.232 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/0.8164, allocations: 36.36 kB / 1.232 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.8167, allocations: 4 kB / 1.232 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005794/0.8173, allocations: 296.5 kB / 1.232 GB, free: 6.379 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.8176, allocations: 0.6885 MB / 1.233 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.963e-05/0.8176, allocations: 15.92 kB / 1.233 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.8177, allocations: 11.44 kB / 1.233 GB, free: 5.637 MB / 0.9512 GB Notification: Performance of SimCode: time 1.783e-06/0.8177, allocations: 0 / 1.233 GB, free: 5.637 MB / 0.9512 GB Notification: Performance of Templates: time 0.00365/0.8213, allocations: 0.9538 MB / 1.234 GB, free: 4.719 MB / 0.9512 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