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.001866/0.001866, allocations: 102.7 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.00209/0.00209, 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.336/1.336, 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 9.1.3-maint.9.1.x/package.mo): time 2.159/2.159, allocations: 390.3 MB / 0.6653 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 62.23 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2723, allocations: 140.4 MB / 0.9503 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002753/0.2751, allocations: 1.28 MB / 0.9515 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.2762, allocations: 0.6209 MB / 0.9521 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.2762, allocations: 0 / 0.9521 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.941e-05/0.2763, allocations: 0 / 0.9521 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.233e-05/0.2764, allocations: 3.938 kB / 0.9521 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.2769, allocations: 155.4 kB / 0.9523 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.523e-05/0.277, allocations: 23.92 kB / 0.9523 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.277, allocations: 4 kB / 0.9523 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.548e-05/0.2771, allocations: 15.92 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.566e-05/0.2771, allocations: 15.92 kB / 0.9523 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.2771, allocations: 4 kB / 0.9523 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004788/0.2776, allocations: 343.3 kB / 0.9527 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.2777, allocations: 11.98 kB / 0.9527 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.794e-05/0.2777, allocations: 7.938 kB / 0.9527 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002588/0.278, allocations: 155.9 kB / 0.9528 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.278, allocations: 0 / 0.9528 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.312e-06/0.278, allocations: 0 / 0.9528 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.278, allocations: 0 / 0.9528 GB, free: 6.219 MB / 0.7325 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.0004354/0.2784, allocations: 376.7 kB / 0.9532 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2785, allocations: 8.031 kB / 0.9532 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.2785, allocations: 8.875 kB / 0.9532 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.2786, allocations: 160.4 kB / 0.9534 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.2787, allocations: 8.375 kB / 0.9534 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.2787, allocations: 8.266 kB / 0.9534 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.2788, allocations: 54.17 kB / 0.9534 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2788, allocations: 192 / 0.9534 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2789, allocations: 7.938 kB / 0.9534 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2789, allocations: 8 kB / 0.9535 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.86e-05/0.2789, allocations: 15.98 kB / 0.9535 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001786/0.2791, allocations: 165.6 kB / 0.9536 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.2792, allocations: 58.56 kB / 0.9537 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.451e-05/0.2793, allocations: 28.84 kB / 0.9537 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.2793, allocations: 7.875 kB / 0.9537 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.2793, allocations: 38.56 kB / 0.9538 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.2793, allocations: 0 / 0.9538 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001136/0.2805, allocations: 0.584 MB / 0.9543 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.2805, allocations: 51.41 kB / 0.9544 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.467e-05/0.2806, allocations: 97.86 kB / 0.9545 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.2806, allocations: 29.7 kB / 0.9545 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.2807, allocations: 88.06 kB / 0.9546 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.2807, allocations: 39.39 kB / 0.9546 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.461e-05/0.2808, allocations: 29.7 kB / 0.9546 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2809, allocations: 318.8 kB / 0.955 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.05e-05/0.2809, allocations: 19.98 kB / 0.955 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.668e-05/0.281, allocations: 23.98 kB / 0.955 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/0.2811, allocations: 64.67 kB / 0.9551 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.2811, allocations: 0 / 0.9551 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001393/0.2812, allocations: 101.5 kB / 0.9552 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2812, allocations: 8 kB / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.2813, allocations: 0 / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2813, allocations: 96 / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.2814, allocations: 23.94 kB / 0.9552 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2814, allocations: 0 / 0.9552 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.323e-05/0.2814, allocations: 0 / 0.9552 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.2814, allocations: 11.98 kB / 0.9552 GB, free: 3.504 MB / 0.7325 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.786e-05/0.2815, allocations: 117.8 kB / 0.9553 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.2816, allocations: 11.84 kB / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001893/0.2817, allocations: 97.58 kB / 0.9554 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2818, allocations: 4 kB / 0.9554 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2818, allocations: 0 / 0.9554 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2818, allocations: 3.984 kB / 0.9554 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004199/0.2822, allocations: 350.5 kB / 0.9558 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2822, allocations: 7.984 kB / 0.9558 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.2823, allocations: 16 kB / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2823, allocations: 0 / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.2824, allocations: 4 kB / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2824, allocations: 0 / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2824, allocations: 0 / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.2826, allocations: 227.2 kB / 0.956 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.2827, allocations: 81.14 kB / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.2827, allocations: 64 / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.759e-05/0.2828, allocations: 12 kB / 0.9561 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.174e-05/0.2828, allocations: 3.984 kB / 0.9561 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.2829, allocations: 8 kB / 0.9561 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.435e-05/0.2829, allocations: 79.28 kB / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2829, allocations: 0 / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002698/0.2832, allocations: 39.98 kB / 0.9562 GB, free: 2.352 MB / 0.7325 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.0002235/0.2834, allocations: 131.2 kB / 0.9563 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000158/0.2836, allocations: 79.88 kB / 0.9564 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.2836, allocations: 0 / 0.9564 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.021e-05/0.2836, allocations: 39.92 kB / 0.9564 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.2839, allocations: 4 kB / 0.9565 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/0.2845, allocations: 310.7 kB / 0.9567 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.2848, allocations: 0.6883 MB / 0.9574 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.2848, allocations: 15.44 kB / 0.9574 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/0.2848, allocations: 0 / 0.9574 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of Templates: time 0.003055/0.2879, allocations: 1.127 MB / 0.9585 GB, free: 15.91 MB / 0.7481 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)