Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001583/0.001583, allocations: 110 kB / 16.36 MB, free: 5.992 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.001704/0.001704, allocations: 193.3 kB / 17.3 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.745/1.745, allocations: 292.3 MB / 0.5496 GB, free: 17.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 63.91 kB / 0.6729 GB, free: 5.836 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1979, allocations: 114.5 MB / 0.7848 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00231/0.2002, allocations: 1.287 MB / 0.786 GB, free: 1.871 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009361/0.2012, allocations: 0.6111 MB / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.2012, allocations: 0 / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.2013, allocations: 3.938 kB / 0.7866 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.517e-05/0.2013, allocations: 7.938 kB / 0.7867 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.2018, allocations: 155.3 kB / 0.7868 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.516e-05/0.2019, allocations: 27.86 kB / 0.7868 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.658e-05/0.202, allocations: 8 kB / 0.7868 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.47e-05/0.202, allocations: 8 kB / 0.7868 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.099e-05/0.2021, allocations: 19.91 kB / 0.7869 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.2021, allocations: 0 / 0.7869 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005045/0.2026, allocations: 343.3 kB / 0.7872 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.599e-05/0.2026, allocations: 11.97 kB / 0.7872 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.2027, allocations: 11.94 kB / 0.7872 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.2029, allocations: 147.6 kB / 0.7874 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.2029, allocations: 4 kB / 0.7874 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2029, allocations: 0 / 0.7874 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2029, allocations: 0 / 0.7874 GB, free: 0.5234 MB / 0.6544 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.0004416/0.2034, allocations: 371.4 kB / 0.7877 GB, free: 112 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2034, allocations: 12.03 kB / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.2035, allocations: 4.844 kB / 0.7877 GB, free: 96 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2998/0.5033, allocations: 166.9 kB / 0.7879 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.5034, allocations: 2.516 kB / 0.7879 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.5034, allocations: 6.094 kB / 0.7879 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.5035, allocations: 44.73 kB / 0.7879 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.5036, allocations: 4.281 kB / 0.7879 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.5036, allocations: 3.438 kB / 0.7879 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.5036, allocations: 1.625 kB / 0.7879 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.096e-05/0.5036, allocations: 23.97 kB / 0.788 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.5038, allocations: 167.5 kB / 0.7881 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 9.195e-05/0.5039, allocations: 59.91 kB / 0.7882 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.659e-05/0.5039, allocations: 26.83 kB / 0.7882 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.504, allocations: 5.625 kB / 0.7882 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.504, allocations: 35.78 kB / 0.7882 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.504, allocations: 0.6562 kB / 0.7883 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0009706/0.505, allocations: 0.5909 MB / 0.7888 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.505, allocations: 54.88 kB / 0.7889 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.974e-05/0.5051, allocations: 100.4 kB / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.5051, allocations: 25.7 kB / 0.789 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.806e-05/0.5051, allocations: 87.38 kB / 0.7891 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.5051, allocations: 39.47 kB / 0.7891 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.702e-05/0.5052, allocations: 29 kB / 0.7891 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.003e-05/0.5052, allocations: 317.4 kB / 0.7895 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.598e-05/0.5053, allocations: 23.69 kB / 0.7895 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.362e-05/0.5053, allocations: 19.59 kB / 0.7895 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.107e-05/0.5054, allocations: 61.08 kB / 0.7896 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.5054, allocations: 0 / 0.7896 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001204/0.5055, allocations: 92.17 kB / 0.7896 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.5055, allocations: 6.594 kB / 0.7896 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.5055, allocations: 3.938 kB / 0.7896 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.5056, allocations: 5.625 kB / 0.7897 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.372e-05/0.5057, allocations: 25.06 kB / 0.7897 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.5057, allocations: 0.5 kB / 0.7897 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.465e-05/0.5057, allocations: 3.062 kB / 0.7897 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.5057, allocations: 2.625 kB / 0.7897 GB, free: 47.24 MB / 0.6544 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 4.701e-05/0.5058, allocations: 121.2 kB / 0.7898 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.5058, allocations: 8.469 kB / 0.7898 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.5059, allocations: 111.7 kB / 0.7899 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.506, allocations: 4.469 kB / 0.7899 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.506, allocations: 0 / 0.7899 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.506, allocations: 1.172 kB / 0.7899 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.5063, allocations: 352.5 kB / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5063, allocations: 0 / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.5064, allocations: 27.56 kB / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.5064, allocations: 0 / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.5064, allocations: 4.125 kB / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.5064, allocations: 1.688 kB / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5064, allocations: 0 / 0.7903 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.5066, allocations: 221.1 kB / 0.7905 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.5067, allocations: 87 kB / 0.7906 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.5067, allocations: 1.125 kB / 0.7906 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.951e-05/0.5068, allocations: 6.344 kB / 0.7906 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.5068, allocations: 5.172 kB / 0.7906 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.5068, allocations: 4.5 kB / 0.7906 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.738e-05/0.5068, allocations: 78.53 kB / 0.7907 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5068, allocations: 0.5625 kB / 0.7907 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002796/0.5071, allocations: 38.67 kB / 0.7907 GB, free: 46.48 MB / 0.6544 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.000186/0.5073, allocations: 138.9 kB / 0.7908 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.5075, allocations: 63.98 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5075, allocations: 0.9062 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.69e-05/0.5075, allocations: 40.59 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.5077, allocations: 11.19 kB / 0.791 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004869/0.5082, allocations: 281.5 kB / 0.7912 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.5084, allocations: 0.6859 MB / 0.7919 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.407e-05/0.5084, allocations: 8.344 kB / 0.7919 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.174e-05/0.5084, allocations: 15.47 kB / 0.7919 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of SimCode: time 4e-07/0.5085, allocations: 1.312 kB / 0.7919 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of Templates: time 0.003007/0.5115, allocations: 0.9466 MB / 0.7928 GB, free: 45.48 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)