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.001465/0.001465, allocations: 104.4 kB / 15.98 MB, free: 6.344 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.001621/0.001621, allocations: 195.5 kB / 16.91 MB, free: 6.184 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.441/1.441, allocations: 222.9 MB / 240.6 MB, free: 13.73 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.283/2.283, allocations: 390.2 MB / 0.665 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 65.08 kB / 0.8127 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2836, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002562/0.2862, allocations: 1.345 MB / 0.9511 GB, free: 7.895 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009938/0.2872, allocations: 0.6228 MB / 0.9517 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.514e-05/0.2873, allocations: 0 / 0.9517 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.2873, allocations: 4 kB / 0.9517 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.162e-05/0.2874, allocations: 7.938 kB / 0.9517 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006078/0.288, allocations: 127.6 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.455e-05/0.288, allocations: 23.92 kB / 0.9518 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.57e-05/0.2881, allocations: 4 kB / 0.9519 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.721e-05/0.2881, allocations: 15.94 kB / 0.9519 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.2882, allocations: 19.91 kB / 0.9519 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.2882, allocations: 0 / 0.9519 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004979/0.2887, allocations: 347.3 kB / 0.9522 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.2888, allocations: 7.922 kB / 0.9522 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.2888, allocations: 19.92 kB / 0.9522 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.289, allocations: 96.09 kB / 0.9523 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.289, allocations: 0 / 0.9523 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.633e-06/0.289, allocations: 0 / 0.9523 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.289, allocations: 0 / 0.9523 GB, free: 6.609 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.000442/0.2895, allocations: 375.3 kB / 0.9527 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.2895, allocations: 8.031 kB / 0.9527 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.2896, allocations: 4.938 kB / 0.9527 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.2897, allocations: 168.3 kB / 0.9529 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.2897, allocations: 384 / 0.9529 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.2897, allocations: 16.22 kB / 0.9529 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.2899, allocations: 46.25 kB / 0.9529 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.2899, allocations: 4.172 kB / 0.9529 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.2899, allocations: 7.938 kB / 0.9529 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2899, allocations: 0 / 0.9529 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.892e-05/0.29, allocations: 19.98 kB / 0.953 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001807/0.2902, allocations: 169.6 kB / 0.9531 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.2903, allocations: 58.58 kB / 0.9532 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.568e-05/0.2903, allocations: 33 kB / 0.9532 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.2904, allocations: 3.984 kB / 0.9532 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.2904, allocations: 30.56 kB / 0.9532 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.2904, allocations: 0 / 0.9532 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001175/0.2916, allocations: 0.5915 MB / 0.9538 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.2916, allocations: 55.41 kB / 0.9539 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.174e-05/0.2917, allocations: 89.86 kB / 0.954 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.2917, allocations: 33.7 kB / 0.954 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.2917, allocations: 88.25 kB / 0.9541 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.2918, allocations: 39.39 kB / 0.9541 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.2918, allocations: 29.7 kB / 0.9541 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.292, allocations: 314.9 kB / 0.9544 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.487e-05/0.292, allocations: 23.92 kB / 0.9545 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.874e-05/0.2921, allocations: 27.92 kB / 0.9545 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.956e-05/0.2922, allocations: 56.36 kB / 0.9545 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2922, allocations: 0 / 0.9545 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001513/0.2923, allocations: 101.5 kB / 0.9546 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.2924, allocations: 17.86 kB / 0.9547 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2924, allocations: 0 / 0.9547 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.2924, allocations: 0 / 0.9547 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.2925, allocations: 19.94 kB / 0.9547 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2925, allocations: 0 / 0.9547 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.438e-05/0.2926, allocations: 4 kB / 0.9547 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.2926, allocations: 7.984 kB / 0.9547 GB, free: 3.895 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 9.858e-05/0.2927, allocations: 113.8 kB / 0.9548 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.2927, allocations: 15.83 kB / 0.9548 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.2929, allocations: 105.5 kB / 0.9549 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2929, allocations: 4 kB / 0.9549 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2929, allocations: 0 / 0.9549 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2929, allocations: 3.984 kB / 0.9549 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.2934, allocations: 346.5 kB / 0.9552 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2934, allocations: 0 / 0.9552 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2935, allocations: 27.92 kB / 0.9553 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2935, allocations: 0 / 0.9553 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.2935, allocations: 4 kB / 0.9553 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2935, allocations: 0 / 0.9553 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2935, allocations: 4 kB / 0.9553 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.2938, allocations: 215.4 kB / 0.9555 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.842e-05/0.2939, allocations: 81.14 kB / 0.9556 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.2939, allocations: 0 / 0.9556 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.244e-05/0.294, allocations: 8 kB / 0.9556 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.06e-05/0.294, allocations: 11.92 kB / 0.9556 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.294, allocations: 8.062 kB / 0.9556 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.691e-05/0.2941, allocations: 75.28 kB / 0.9557 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2941, allocations: 0 / 0.9557 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002894/0.2944, allocations: 39.98 kB / 0.9557 GB, free: 2.742 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.000225/0.2946, allocations: 139.1 kB / 0.9558 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001519/0.2948, allocations: 67.84 kB / 0.9559 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2948, allocations: 0 / 0.9559 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.789e-05/0.2948, allocations: 44.02 kB / 0.9559 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.295, allocations: 4.656 kB / 0.9559 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005311/0.2956, allocations: 330.6 kB / 0.9563 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.2959, allocations: 0.6883 MB / 0.9569 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.285e-05/0.2959, allocations: 19.44 kB / 0.957 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.2959, allocations: 3.938 kB / 0.957 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of Templates: time 0.002611/0.2985, allocations: 1.118 MB / 0.958 GB, free: 284 kB / 0.7325 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)