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.001292/0.001292, 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.001398/0.001397, allocations: 196.8 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.379/2.379, allocations: 390.2 MB / 0.6646 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001199, allocations: 67.89 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7301/0.7313, allocations: 140.4 MB / 0.9496 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00279/0.7342, allocations: 1.279 MB / 0.9508 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.7352, allocations: 0.6137 MB / 0.9514 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.552e-05/0.7353, allocations: 0 / 0.9514 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.7353, allocations: 3.938 kB / 0.9514 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.232e-05/0.7354, allocations: 0 / 0.9514 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005735/0.7359, allocations: 156.9 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.785e-05/0.736, allocations: 26.05 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.08e-05/0.7361, allocations: 2.156 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.012e-05/0.7361, allocations: 18.06 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.179e-05/0.7362, allocations: 9.141 kB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.7362, allocations: 13.08 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005587/0.7368, allocations: 338.7 kB / 0.952 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.7368, allocations: 5.469 kB / 0.952 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.347e-05/0.7368, allocations: 21.22 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.7371, allocations: 152.9 kB / 0.9522 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.7371, allocations: 0 / 0.9522 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7371, allocations: 0 / 0.9522 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.7371, allocations: 0 / 0.9522 GB, free: 7.297 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.000388/0.7375, allocations: 367.6 kB / 0.9525 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.7376, allocations: 12.91 kB / 0.9525 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.7376, allocations: 3.969 kB / 0.9525 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.566e-05/0.7377, allocations: 169.5 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.7377, allocations: 1.5 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.7378, allocations: 3.125 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.7379, allocations: 58.2 kB / 0.9527 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.7379, allocations: 4.094 kB / 0.9527 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.7379, allocations: 7.922 kB / 0.9527 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.7379, allocations: 1.469 kB / 0.9528 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.384e-05/0.738, allocations: 14.5 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.7382, allocations: 170.8 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.7383, allocations: 59.28 kB / 0.953 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.394e-05/0.7383, allocations: 29.34 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.7384, allocations: 1.438 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.7384, allocations: 31.97 kB / 0.953 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.7384, allocations: 3.938 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001071/0.7395, allocations: 0.5869 MB / 0.9536 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.7395, allocations: 53.69 kB / 0.9537 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.891e-05/0.7396, allocations: 92.23 kB / 0.9538 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.7396, allocations: 35.02 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.677e-05/0.7396, allocations: 81.36 kB / 0.9539 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.7396, allocations: 36.02 kB / 0.9539 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.7397, allocations: 34.08 kB / 0.9539 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.469e-05/0.7397, allocations: 316.1 kB / 0.9542 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.142e-05/0.7398, allocations: 23.27 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.768e-05/0.7398, allocations: 26.05 kB / 0.9543 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.21e-05/0.7399, allocations: 53.77 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.7399, allocations: 9.5 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001348/0.7401, allocations: 101.9 kB / 0.9544 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.7401, allocations: 8.328 kB / 0.9545 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.7401, allocations: 0 / 0.9545 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.7401, allocations: 1.125 kB / 0.9545 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.7402, allocations: 22.12 kB / 0.9545 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.7402, allocations: 1.344 kB / 0.9545 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.502e-05/0.7403, allocations: 4 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.7403, allocations: 2.938 kB / 0.9545 GB, free: 4.98 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.755e-05/0.7403, allocations: 124.6 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.7404, allocations: 6.594 kB / 0.9546 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001775/0.7406, allocations: 115.7 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.7406, allocations: 1.438 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.7406, allocations: 0 / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7406, allocations: 3.984 kB / 0.9547 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.7409, allocations: 349.2 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7409, allocations: 1.125 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.741, allocations: 29.48 kB / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.741, allocations: 0 / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.741, allocations: 1.438 kB / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.7411, allocations: 1.281 kB / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.7411, allocations: 0 / 0.9551 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.7413, allocations: 217.5 kB / 0.9553 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.866e-05/0.7413, allocations: 82.33 kB / 0.9554 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.7413, allocations: 5.531 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.398e-05/0.7414, allocations: 5.656 kB / 0.9554 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.166e-05/0.7414, allocations: 7.766 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.7414, allocations: 7.594 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.736e-05/0.7415, allocations: 76.38 kB / 0.9555 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.91e-07/0.7415, allocations: 0 / 0.9555 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002682/0.7417, allocations: 48.52 kB / 0.9555 GB, free: 4.012 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.0002037/0.742, allocations: 123.2 kB / 0.9556 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001512/0.7421, allocations: 74.31 kB / 0.9557 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.7421, allocations: 4 kB / 0.9557 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.187e-05/0.7422, allocations: 33.61 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.7424, allocations: 4.531 kB / 0.9557 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005961/0.743, allocations: 288.7 kB / 0.956 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.7432, allocations: 0.6911 MB / 0.9567 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.314e-05/0.7433, allocations: 22.83 kB / 0.9567 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.7433, allocations: 12.22 kB / 0.9567 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7433, allocations: 0 / 0.9567 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of Templates: time 0.003626/0.7469, allocations: 0.9336 MB / 0.9576 GB, free: 2.449 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