Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009838/0.000984, allocations: 91.92 kB / 16.02 MB, free: 80 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.001276/0.001276, allocations: 185.1 kB / 16.92 MB, free: 6.922 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.345/1.345, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.65/2.65, allocations: 462.7 MB / 0.7371 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003481, allocations: 8.375 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2802, allocations: 159.6 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001329/0.2816, allocations: 1.014 MB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2826, allocations: 0.6268 MB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.2827, allocations: 0 / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.2827, allocations: 0 / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.774e-05/0.2827, allocations: 0 / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005252/0.2833, allocations: 134.5 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.679e-05/0.2833, allocations: 31.92 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.027e-05/0.2834, allocations: 3.938 kB / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.526e-05/0.2834, allocations: 11.98 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.327e-05/0.2835, allocations: 15.92 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.2835, allocations: 4 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004865/0.284, allocations: 343.3 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.434e-05/0.284, allocations: 3.984 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.592e-05/0.284, allocations: 41.64 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001891/0.2842, allocations: 100.1 kB / 1.062 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2843, allocations: 0 / 1.062 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2843, allocations: 0 / 1.062 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2843, allocations: 4 kB / 1.062 GB, free: 2.555 MB / 0.8106 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.0003648/0.2846, allocations: 367.3 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2847, allocations: 11.97 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.2847, allocations: 4.938 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.928e-05/0.2848, allocations: 164.3 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.2848, allocations: 384 / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.166e-05/0.2849, allocations: 4.375 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.285, allocations: 54.19 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.285, allocations: 8.172 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.285, allocations: 3.938 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.285, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.202e-05/0.2851, allocations: 19.98 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.2853, allocations: 169.6 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.2854, allocations: 54.56 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.962e-05/0.2854, allocations: 36.78 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.2855, allocations: 4 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.2855, allocations: 30.56 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.2855, allocations: 0 / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001077/0.2866, allocations: 0.5878 MB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.2866, allocations: 55.41 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.619e-05/0.2867, allocations: 97.86 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2867, allocations: 25.7 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.686e-05/0.2867, allocations: 84 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.2868, allocations: 47.3 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.2868, allocations: 17.7 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.827e-05/0.2869, allocations: 314.8 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-05/0.287, allocations: 28.11 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.735e-05/0.287, allocations: 27.98 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.893e-05/0.2871, allocations: 56.8 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.2871, allocations: 0 / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000158/0.2873, allocations: 92.75 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2873, allocations: 4 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2873, allocations: 4 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2873, allocations: 3.984 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.2874, allocations: 20 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.2874, allocations: 3.938 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.2875, allocations: 8 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.2875, allocations: 3.984 kB / 1.064 GB, free: 15.87 MB / 0.8262 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 7.538e-05/0.2876, allocations: 121.8 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.2876, allocations: 11.84 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001848/0.2878, allocations: 101.6 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.2878, allocations: 4 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2878, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2878, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003874/0.2882, allocations: 362.6 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2882, allocations: 3.938 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2883, allocations: 23.98 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2883, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.2884, allocations: 4 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2884, allocations: 80 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2884, allocations: 7.984 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.2886, allocations: 223.2 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.165e-05/0.2887, allocations: 85.2 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.2887, allocations: 0 / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-05/0.2888, allocations: 0 / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.2888, allocations: 11.98 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.2888, allocations: 4 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.828e-05/0.2889, allocations: 75.28 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2889, allocations: 0 / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002722/0.2891, allocations: 40 kB / 1.065 GB, free: 14.7 MB / 0.8262 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.0001865/0.2893, allocations: 131.2 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001398/0.2895, allocations: 67.86 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2895, allocations: 0 / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.861e-05/0.2895, allocations: 35.86 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.2898, allocations: 8 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005316/0.2903, allocations: 369.8 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.2905, allocations: 0.6848 MB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.087e-05/0.2906, allocations: 11.44 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.2906, allocations: 0 / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.002664/0.2932, allocations: 1.117 MB / 1.067 GB, free: 12.23 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)