Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001207/0.001207, allocations: 98.75 kB / 16.27 MB, free: 5.969 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.001221/0.001221, allocations: 193.8 kB / 17.2 MB, free: 5.594 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.371/1.371, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.435/2.435, allocations: 437 MB / 0.711 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.00147, allocations: 75.44 kB / 0.8699 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3011, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002759/0.304, allocations: 1.276 MB / 1.019 GB, free: 9.332 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.3051, allocations: 0.6243 MB / 1.02 GB, free: 8.707 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.3052, allocations: 0 / 1.02 GB, free: 8.707 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.477e-05/0.3053, allocations: 3.938 kB / 1.02 GB, free: 8.703 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.3053, allocations: 0 / 1.02 GB, free: 8.703 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000701/0.306, allocations: 149.8 kB / 1.02 GB, free: 8.559 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.239e-05/0.3061, allocations: 31.86 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.076e-05/0.3062, allocations: 7.938 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.092e-05/0.3062, allocations: 11.98 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.974e-05/0.3063, allocations: 19.91 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.3063, allocations: 0 / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000559/0.3069, allocations: 339.4 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.3069, allocations: 11.98 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.044e-05/0.3069, allocations: 11.88 kB / 1.02 GB, free: 8.133 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.3072, allocations: 151.9 kB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3072, allocations: 4 kB / 1.021 GB, free: 7.98 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3073, allocations: 0 / 1.021 GB, free: 7.98 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.3073, allocations: 4 kB / 1.021 GB, free: 7.977 MB / 0.795 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.0004914/0.3078, allocations: 375.3 kB / 1.021 GB, free: 7.559 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3078, allocations: 8.922 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.3079, allocations: 4.938 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.308, allocations: 172.2 kB / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.308, allocations: 8.359 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.3081, allocations: 4.375 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.3082, allocations: 50.25 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.3082, allocations: 192 / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3082, allocations: 7.938 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3082, allocations: 0 / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.448e-05/0.3083, allocations: 19.98 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001951/0.3085, allocations: 165.6 kB / 1.021 GB, free: 7.035 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.3086, allocations: 62.48 kB / 1.021 GB, free: 6.965 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.725e-05/0.3087, allocations: 28.86 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.3087, allocations: 0 / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.3088, allocations: 38.55 kB / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.3088, allocations: 0 / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.001259/0.31, allocations: 0.5801 MB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.3101, allocations: 63.39 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.644e-05/0.3102, allocations: 89.86 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.3102, allocations: 33.7 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.3102, allocations: 80.14 kB / 1.022 GB, free: 5.922 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.684e-05/0.3103, allocations: 43.3 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-05/0.3103, allocations: 29.66 kB / 1.022 GB, free: 5.844 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3105, allocations: 318.8 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.491e-05/0.3105, allocations: 20.08 kB / 1.023 GB, free: 5.504 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.409e-05/0.3106, allocations: 36.06 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.3107, allocations: 55.59 kB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3107, allocations: 0 / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001488/0.3108, allocations: 97.62 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3109, allocations: 4 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3109, allocations: 4 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3109, allocations: 0 / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.311, allocations: 23.92 kB / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.311, allocations: 0 / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.787e-05/0.311, allocations: 11.94 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.3111, allocations: 4 kB / 1.023 GB, free: 5.266 MB / 0.795 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 8.946e-05/0.3112, allocations: 116.2 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.3112, allocations: 11.84 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.3114, allocations: 101.6 kB / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3114, allocations: 4 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3114, allocations: 0 / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3114, allocations: 0 / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004285/0.3118, allocations: 362.6 kB / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3119, allocations: 0 / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.312, allocations: 27.92 kB / 1.023 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.312, allocations: 0 / 1.023 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.312, allocations: 3.984 kB / 1.023 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.312, allocations: 0 / 1.023 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.312, allocations: 4 kB / 1.023 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.3123, allocations: 215.3 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.3123, allocations: 89.19 kB / 1.024 GB, free: 4.246 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.3124, allocations: 0 / 1.024 GB, free: 4.246 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.3125, allocations: 4 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.3125, allocations: 4 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3125, allocations: 7.984 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.605e-05/0.3125, allocations: 83.22 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3126, allocations: 0 / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002783/0.3128, allocations: 32 kB / 1.024 GB, free: 4.117 MB / 0.795 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.0002225/0.3131, allocations: 139.2 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.3132, allocations: 71.86 kB / 1.024 GB, free: 3.898 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3133, allocations: 0 / 1.024 GB, free: 3.898 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.336e-05/0.3133, allocations: 31.98 kB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.3135, allocations: 14.52 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006077/0.3142, allocations: 314.7 kB / 1.024 GB, free: 3.516 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.3144, allocations: 0.6894 MB / 1.025 GB, free: 2.801 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.087e-05/0.3145, allocations: 11.44 kB / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.3145, allocations: 0 / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of Templates: time 0.002974/0.3175, allocations: 1.124 MB / 1.026 GB, free: 1.672 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)