Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.00113/0.00113, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001319/0.00132, allocations: 193.7 kB / 16.14 MB, free: 6.645 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 67.89 kB / 0.8119 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7036/0.705, allocations: 140.3 MB / 0.9489 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002553/0.7076, allocations: 1.344 MB / 0.9502 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009722/0.7086, allocations: 0.6326 MB / 0.9509 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.322e-05/0.7087, allocations: 1.281 kB / 0.9509 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.7087, allocations: 3.984 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.291e-05/0.7088, allocations: 3.984 kB / 0.9509 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.7094, allocations: 129.7 kB / 0.951 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.852e-05/0.7094, allocations: 20.97 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.7095, allocations: 9 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.52e-05/0.7095, allocations: 14.81 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.7096, allocations: 12.61 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.7096, allocations: 1.281 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000456/0.7101, allocations: 348.9 kB / 0.9514 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.7101, allocations: 6.594 kB / 0.9514 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.7101, allocations: 16.58 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.7104, allocations: 152 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.7104, allocations: 1.219 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7104, allocations: 0 / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.7104, allocations: 0 / 0.9515 GB, free: 7.277 MB / 0.7169 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.0003831/0.7108, allocations: 370.5 kB / 0.9519 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.7108, allocations: 13.81 kB / 0.9519 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/0.7109, allocations: 4.062 kB / 0.9519 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.639e-05/0.711, allocations: 168.4 kB / 0.9521 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.711, allocations: 2.156 kB / 0.9521 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.711, allocations: 3.062 kB / 0.9521 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.7112, allocations: 49.78 kB / 0.9521 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.7112, allocations: 8.078 kB / 0.9521 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.7112, allocations: 4.781 kB / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.7112, allocations: 0.9062 kB / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.392e-05/0.7113, allocations: 27.64 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.7114, allocations: 165.1 kB / 0.9523 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.341e-05/0.7115, allocations: 55.89 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.973e-05/0.7116, allocations: 30.66 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.7116, allocations: 5.172 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.7116, allocations: 32 kB / 0.9524 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/0.7116, allocations: 4 kB / 0.9524 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001043/0.7127, allocations: 0.595 MB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.998e-05/0.7127, allocations: 52.56 kB / 0.9531 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.74e-05/0.7127, allocations: 92.52 kB / 0.9532 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.7128, allocations: 35.2 kB / 0.9532 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.508e-05/0.7128, allocations: 84.12 kB / 0.9533 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.7128, allocations: 36.08 kB / 0.9533 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.7129, allocations: 30.2 kB / 0.9533 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.913e-05/0.7129, allocations: 320.3 kB / 0.9536 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.713, allocations: 19.77 kB / 0.9537 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.848e-05/0.713, allocations: 21.72 kB / 0.9537 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.59e-05/0.7131, allocations: 60.72 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.7131, allocations: 4 kB / 0.9538 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001325/0.7132, allocations: 102.8 kB / 0.9538 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7133, allocations: 5.281 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.7133, allocations: 0 / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.7133, allocations: 1.406 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.7134, allocations: 21.52 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.7134, allocations: 0 / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.708e-05/0.7134, allocations: 9.375 kB / 0.9539 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.7134, allocations: 2.625 kB / 0.9539 GB, free: 4.949 MB / 0.7169 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 5.304e-05/0.7135, allocations: 120.1 kB / 0.954 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.7135, allocations: 7.094 kB / 0.954 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.7137, allocations: 112.2 kB / 0.9541 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.7137, allocations: 0 / 0.9541 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.7137, allocations: 1.25 kB / 0.9541 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.7137, allocations: 0 / 0.9541 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.7141, allocations: 349.4 kB / 0.9544 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.7141, allocations: 0 / 0.9544 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.7142, allocations: 21.3 kB / 0.9545 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.7142, allocations: 5 kB / 0.9545 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.036e-06/0.7142, allocations: 5 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.7142, allocations: 1 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.7142, allocations: 0 / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000205/0.7144, allocations: 222.7 kB / 0.9547 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.744e-05/0.7144, allocations: 82.52 kB / 0.9548 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.7145, allocations: 9.516 kB / 0.9548 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.7146, allocations: 5.344 kB / 0.9548 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.7146, allocations: 7.109 kB / 0.9548 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.7146, allocations: 7.625 kB / 0.9548 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.081e-05/0.7147, allocations: 76.47 kB / 0.9549 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7147, allocations: 0 / 0.9549 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002865/0.715, allocations: 40.25 kB / 0.9549 GB, free: 3.992 MB / 0.7169 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.0001985/0.7152, allocations: 129.6 kB / 0.955 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001365/0.7153, allocations: 70.94 kB / 0.9551 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7153, allocations: 5.562 kB / 0.9551 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.745e-05/0.7154, allocations: 32.77 kB / 0.9551 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.7156, allocations: 10.16 kB / 0.9551 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004983/0.7161, allocations: 295.2 kB / 0.9554 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.7162, allocations: 0.6959 MB / 0.9561 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.434e-05/0.7163, allocations: 5.562 kB / 0.9561 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.311e-05/0.7163, allocations: 12.53 kB / 0.9561 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.7163, allocations: 0 / 0.9561 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of Templates: time 0.003089/0.7194, allocations: 0.9238 MB / 0.957 GB, free: 2.418 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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