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.00163/0.00163, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001544/0.001544, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.425/1.425, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.535/2.535, allocations: 437.1 MB / 0.7111 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 68.33 kB / 0.8699 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.341, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002606/0.3437, allocations: 1.277 MB / 1.019 GB, free: 9.336 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.3448, allocations: 0.6165 MB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.653e-05/0.3449, allocations: 0 / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.3449, allocations: 3.938 kB / 1.02 GB, free: 8.715 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.621e-05/0.345, allocations: 11.92 kB / 1.02 GB, free: 8.703 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.3455, allocations: 152.4 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.684e-05/0.3456, allocations: 23.92 kB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.3457, allocations: 7.938 kB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.3457, allocations: 15.98 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.013e-05/0.3458, allocations: 11.92 kB / 1.02 GB, free: 8.496 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.3458, allocations: 0 / 1.02 GB, free: 8.496 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005629/0.3464, allocations: 347.3 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.3464, allocations: 7.984 kB / 1.02 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.311e-05/0.3464, allocations: 15.94 kB / 1.02 GB, free: 8.133 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002815/0.3467, allocations: 147.9 kB / 1.021 GB, free: 7.988 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3467, allocations: 4 kB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3467, allocations: 4 kB / 1.021 GB, free: 7.98 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3468, allocations: 0 / 1.021 GB, free: 7.98 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.0005039/0.3473, allocations: 375.3 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3473, allocations: 12.92 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.3474, allocations: 4.938 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.3475, allocations: 172.3 kB / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3475, allocations: 4.312 kB / 1.021 GB, free: 7.336 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.3476, allocations: 4.375 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.3477, allocations: 58.23 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3477, allocations: 192 / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3477, allocations: 3.938 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3477, allocations: 0 / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.658e-05/0.3478, allocations: 23.92 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.348, allocations: 165.6 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.3481, allocations: 54.56 kB / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.875e-05/0.3482, allocations: 32.84 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.3482, allocations: 4.234 kB / 1.021 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.3483, allocations: 34.55 kB / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.3483, allocations: 0 / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.001216/0.3495, allocations: 0.5837 MB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3495, allocations: 51.41 kB / 1.022 GB, free: 6.148 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.693e-05/0.3496, allocations: 97.86 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.3497, allocations: 25.7 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.3497, allocations: 84.14 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.3498, allocations: 51.28 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.3498, allocations: 25.7 kB / 1.022 GB, free: 5.844 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.35, allocations: 319 kB / 1.023 GB, free: 5.523 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.103e-05/0.35, allocations: 19.98 kB / 1.023 GB, free: 5.504 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.413e-05/0.3501, allocations: 26.61 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.3502, allocations: 56.86 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.3502, allocations: 0 / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000157/0.3504, allocations: 101.5 kB / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.3504, allocations: 4.094 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3504, allocations: 3.938 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3504, allocations: 4 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.3505, allocations: 24 kB / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3505, allocations: 0 / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.277e-05/0.3506, allocations: 0 / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.3506, allocations: 7.984 kB / 1.023 GB, free: 5.273 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 9.897e-05/0.3507, allocations: 113.8 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.3507, allocations: 15.78 kB / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.3509, allocations: 105.6 kB / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3509, allocations: 0 / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3509, allocations: 8 kB / 1.023 GB, free: 5.02 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.351, allocations: 7.984 kB / 1.023 GB, free: 5.012 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.3514, allocations: 346.4 kB / 1.023 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3514, allocations: 3.984 kB / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.3515, allocations: 23.98 kB / 1.023 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3515, allocations: 0 / 1.023 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3516, allocations: 4 kB / 1.023 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3516, allocations: 0 / 1.023 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3516, allocations: 0 / 1.023 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.3518, allocations: 223.3 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.3519, allocations: 81.11 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.3519, allocations: 4.031 kB / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.527e-05/0.352, allocations: 0 / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.352, allocations: 11.92 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.3521, allocations: 8 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.966e-05/0.3521, allocations: 75.28 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3521, allocations: 4.156 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002662/0.3524, allocations: 35.98 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.0002403/0.3526, allocations: 133.8 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.3528, allocations: 78.53 kB / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3528, allocations: 0 / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.759e-05/0.3529, allocations: 39.86 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002296/0.3531, allocations: 7.953 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.3537, allocations: 310.7 kB / 1.024 GB, free: 3.523 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3541, allocations: 0.6893 MB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.3541, allocations: 15.38 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.3541, allocations: 3.938 kB / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of Templates: time 0.003123/0.3573, allocations: 1.125 MB / 1.026 GB, free: 1.668 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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)