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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001057/0.001057, allocations: 92 kB / 15.06 MB, free: 1.098 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.001656/0.001656, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.561/2.561, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 15.98 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.724/0.7244, allocations: 142.4 MB / 0.9544 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001409/0.7259, allocations: 0.9964 MB / 0.9554 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008297/0.7267, allocations: 0.5666 MB / 0.956 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.08e-05/0.7267, allocations: 0 / 0.956 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.7268, allocations: 3.938 kB / 0.956 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.921e-05/0.7268, allocations: 0 / 0.956 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.7272, allocations: 128.4 kB / 0.9561 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.652e-05/0.7273, allocations: 31.36 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.453e-05/0.7273, allocations: 2.469 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.405e-05/0.7274, allocations: 9.984 kB / 0.9561 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.202e-05/0.7274, allocations: 16.8 kB / 0.9562 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.7275, allocations: 1.125 kB / 0.9562 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004161/0.7279, allocations: 332.6 kB / 0.9565 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.7279, allocations: 5.188 kB / 0.9565 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.369e-05/0.7279, allocations: 29.98 kB / 0.9565 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.7281, allocations: 104.1 kB / 0.9566 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.7281, allocations: 1.031 kB / 0.9566 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7281, allocations: 3.938 kB / 0.9566 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.7281, allocations: 0 / 0.9566 GB, free: 6.105 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.0003545/0.7285, allocations: 364.6 kB / 0.957 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.7285, allocations: 7.844 kB / 0.957 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.7286, allocations: 6.391 kB / 0.957 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.88e-05/0.7287, allocations: 164.4 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.7287, allocations: 14.62 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.7287, allocations: 2.312 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.7289, allocations: 51.95 kB / 0.9572 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.7289, allocations: 0.9688 kB / 0.9572 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.7289, allocations: 0.7188 kB / 0.9572 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.7289, allocations: 5.047 kB / 0.9572 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.084e-05/0.729, allocations: 18.77 kB / 0.9572 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.7291, allocations: 170.2 kB / 0.9574 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.7292, allocations: 66.59 kB / 0.9574 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.607e-05/0.7293, allocations: 30.91 kB / 0.9575 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.7293, allocations: 0 / 0.9575 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.7293, allocations: 31.97 kB / 0.9575 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 8.02e-07/0.7293, allocations: 0 / 0.9575 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001001/0.7304, allocations: 0.5959 MB / 0.9581 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.7304, allocations: 56.67 kB / 0.9581 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.906e-05/0.7304, allocations: 92.36 kB / 0.9582 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.7305, allocations: 31.02 kB / 0.9583 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.848e-05/0.7305, allocations: 80.14 kB / 0.9583 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.7305, allocations: 36.42 kB / 0.9584 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.7305, allocations: 8.125 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.251e-05/0.7306, allocations: 317.4 kB / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.85e-05/0.7306, allocations: 19.97 kB / 0.9587 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.433e-05/0.7307, allocations: 27.7 kB / 0.9587 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.993e-05/0.7307, allocations: 27.06 kB / 0.9588 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.7307, allocations: 0 / 0.9588 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001311/0.7309, allocations: 94.64 kB / 0.9588 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.7309, allocations: 5.156 kB / 0.9588 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.7309, allocations: 0 / 0.9588 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.7309, allocations: 1.75 kB / 0.9588 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.731, allocations: 25.75 kB / 0.9589 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.731, allocations: 3.953 kB / 0.9589 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.418e-05/0.7311, allocations: 9.484 kB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.7311, allocations: 6.594 kB / 0.9589 GB, free: 3.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.832e-05/0.7312, allocations: 112.4 kB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.7312, allocations: 2.5 kB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.7314, allocations: 102.6 kB / 0.9591 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.7314, allocations: 2.562 kB / 0.9591 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.7314, allocations: 4 kB / 0.9591 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.7314, allocations: 7.938 kB / 0.9591 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.7317, allocations: 351.9 kB / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7317, allocations: 1.406 kB / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.7319, allocations: 16.78 kB / 0.9595 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.7319, allocations: 1.375 kB / 0.9595 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.7319, allocations: 9.188 kB / 0.9595 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.7319, allocations: 3.953 kB / 0.9595 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7319, allocations: 9.109 kB / 0.9595 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.7321, allocations: 216.3 kB / 0.9597 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/0.7321, allocations: 82.52 kB / 0.9598 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.7322, allocations: 1.219 kB / 0.9598 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.971e-05/0.7322, allocations: 1.531 kB / 0.9598 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.263e-05/0.7323, allocations: 16.34 kB / 0.9598 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.7323, allocations: 3.25 kB / 0.9598 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.044e-05/0.7323, allocations: 80.88 kB / 0.9599 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7323, allocations: 0 / 0.9599 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002721/0.7326, allocations: 44.33 kB / 0.9599 GB, free: 2.863 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.7328, allocations: 133.6 kB / 0.96 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001322/0.7329, allocations: 57.94 kB / 0.9601 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.7329, allocations: 0 / 0.9601 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.358e-05/0.733, allocations: 33.92 kB / 0.9601 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.7332, allocations: 10.69 kB / 0.9601 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004531/0.7336, allocations: 338.8 kB / 0.9605 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.7338, allocations: 0.6893 MB / 0.9611 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.592e-05/0.7338, allocations: 14.86 kB / 0.9611 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.7339, allocations: 12.94 kB / 0.9612 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.7339, allocations: 0 / 0.9612 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of Templates: time 0.002905/0.7368, allocations: 0.8928 MB / 0.962 GB, free: 1.27 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