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.001109/0.001109, allocations: 98.88 kB / 16.02 MB, free: 76 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.001689/0.001689, allocations: 186 kB / 16.92 MB, free: 6.777 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.496/1.496, allocations: 223.3 MB / 241 MB, free: 5.34 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.467/2.467, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003677, allocations: 11.98 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6858/0.6862, allocations: 142.4 MB / 0.9557 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001227/0.6875, allocations: 1.022 MB / 0.9567 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009189/0.6884, allocations: 0.6072 MB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.556e-05/0.6885, allocations: 0 / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.6885, allocations: 4.906 kB / 0.9573 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.812e-05/0.6885, allocations: 3.984 kB / 0.9573 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.689, allocations: 125.4 kB / 0.9574 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.151e-05/0.689, allocations: 28.83 kB / 0.9575 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.134e-05/0.6891, allocations: 1.312 kB / 0.9575 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.685e-05/0.6891, allocations: 18.89 kB / 0.9575 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.3e-05/0.6892, allocations: 8.828 kB / 0.9575 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.6892, allocations: 1.188 kB / 0.9575 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004279/0.6896, allocations: 349 kB / 0.9578 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.6896, allocations: 13.86 kB / 0.9578 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.6897, allocations: 39.67 kB / 0.9579 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.6898, allocations: 99.78 kB / 0.958 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6899, allocations: 1.594 kB / 0.958 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6899, allocations: 0 / 0.958 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.6899, allocations: 0 / 0.958 GB, free: 6.066 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.0003003/0.6902, allocations: 362.7 kB / 0.9583 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.6902, allocations: 10.03 kB / 0.9583 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.6903, allocations: 6.344 kB / 0.9583 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.59e-05/0.6903, allocations: 161.8 kB / 0.9585 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.6903, allocations: 3.312 kB / 0.9585 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.6904, allocations: 6.938 kB / 0.9585 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.6905, allocations: 44.72 kB / 0.9585 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.6905, allocations: 5.078 kB / 0.9585 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.6905, allocations: 13.06 kB / 0.9586 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.6905, allocations: 3.938 kB / 0.9586 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.639e-05/0.6906, allocations: 18.95 kB / 0.9586 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.6907, allocations: 170.7 kB / 0.9587 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.962e-05/0.6908, allocations: 70.77 kB / 0.9588 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.757e-05/0.6909, allocations: 25.81 kB / 0.9588 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.6909, allocations: 1.906 kB / 0.9588 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.6909, allocations: 44.22 kB / 0.9589 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.6909, allocations: 0 / 0.9589 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0009427/0.6919, allocations: 0.592 MB / 0.9595 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.6919, allocations: 52.78 kB / 0.9595 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.701e-05/0.692, allocations: 92.61 kB / 0.9596 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.692, allocations: 25.83 kB / 0.9596 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.681e-05/0.692, allocations: 89.52 kB / 0.9597 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.6921, allocations: 35.58 kB / 0.9597 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.6921, allocations: 21.83 kB / 0.9598 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.48e-05/0.6921, allocations: 316.2 kB / 0.9601 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.775e-05/0.6922, allocations: 20.36 kB / 0.9601 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.43e-05/0.6922, allocations: 22.48 kB / 0.9601 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.455e-05/0.6923, allocations: 53.73 kB / 0.9601 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-07/0.6923, allocations: 0 / 0.9601 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001323/0.6925, allocations: 111.3 kB / 0.9603 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.6925, allocations: 4.031 kB / 0.9603 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.6925, allocations: 1.031 kB / 0.9603 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.6925, allocations: 1.469 kB / 0.9603 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.6926, allocations: 20.98 kB / 0.9603 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.6926, allocations: 5.047 kB / 0.9603 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.383e-05/0.6927, allocations: 0.9062 kB / 0.9603 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.6927, allocations: 6.688 kB / 0.9603 GB, free: 3.746 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.597e-05/0.6927, allocations: 120.2 kB / 0.9604 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.6928, allocations: 11.84 kB / 0.9604 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.6929, allocations: 102 kB / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.6929, allocations: 2.094 kB / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.693, allocations: 0 / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.693, allocations: 1.156 kB / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003306/0.6933, allocations: 360.6 kB / 0.9609 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6933, allocations: 0 / 0.9609 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.6934, allocations: 21.17 kB / 0.9609 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6934, allocations: 5.125 kB / 0.9609 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.6934, allocations: 4.969 kB / 0.9609 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.6935, allocations: 1.062 kB / 0.9609 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6935, allocations: 0 / 0.9609 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002058/0.6937, allocations: 219 kB / 0.9611 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.6937, allocations: 83.05 kB / 0.9612 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.6937, allocations: 5.062 kB / 0.9612 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.6938, allocations: 6 kB / 0.9612 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.6938, allocations: 11.08 kB / 0.9612 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.6938, allocations: 3.531 kB / 0.9612 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.829e-05/0.6939, allocations: 76.41 kB / 0.9613 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.62e-07/0.6939, allocations: 1.156 kB / 0.9613 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000271/0.6941, allocations: 39.84 kB / 0.9613 GB, free: 2.789 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.0001829/0.6943, allocations: 133.4 kB / 0.9614 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001333/0.6945, allocations: 62.52 kB / 0.9615 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6945, allocations: 1.312 kB / 0.9615 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.515e-05/0.6945, allocations: 40.98 kB / 0.9615 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.6948, allocations: 9.078 kB / 0.9616 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004586/0.6952, allocations: 366.6 kB / 0.9619 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.371e-05/0.6953, allocations: 0.6932 MB / 0.9626 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.6954, allocations: 12.94 kB / 0.9626 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6954, allocations: 1.375 kB / 0.9626 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of Templates: time 0.002569/0.6979, allocations: 1.118 MB / 0.9637 GB, free: 1.027 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)