Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001806/0.001806, allocations: 109.4 kB / 15.99 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.001916/0.001916, allocations: 196.2 kB / 16.91 MB, free: 6.176 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.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.647/2.647, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001954, allocations: 72.12 kB / 0.9087 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3874, allocations: 159.2 MB / 1.064 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.003891/0.3913, allocations: 1.337 MB / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.3931, allocations: 0.6189 MB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.093e-05/0.3931, allocations: 4 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.856e-05/0.3932, allocations: 3.938 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.332e-05/0.3933, allocations: 0 / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008754/0.3942, allocations: 127.6 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.1e-05/0.3943, allocations: 27.86 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.015e-05/0.3944, allocations: 4 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.677e-05/0.3944, allocations: 11.98 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.753e-05/0.3945, allocations: 15.92 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3945, allocations: 8 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00072/0.3953, allocations: 347.3 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.3953, allocations: 3.984 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.073e-05/0.3953, allocations: 11.94 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.3956, allocations: 104 kB / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3957, allocations: 0 / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3957, allocations: 0 / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.3957, allocations: 4 kB / 1.067 GB, free: 12.45 MB / 0.8419 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.0006897/0.3964, allocations: 363.4 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.3965, allocations: 16.03 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.3965, allocations: 8.781 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.3967, allocations: 164.4 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3968, allocations: 4.375 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.3968, allocations: 4.375 kB / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.397, allocations: 50.23 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.397, allocations: 4.188 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3971, allocations: 3.938 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.3971, allocations: 0 / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-05/0.3972, allocations: 19.98 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003224/0.3975, allocations: 173.6 kB / 1.067 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.3977, allocations: 58.5 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.999e-05/0.3979, allocations: 28.84 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.3979, allocations: 4 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.3979, allocations: 30.56 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.398, allocations: 0 / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0019/0.3999, allocations: 0.5994 MB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.3999, allocations: 51.41 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.4001, allocations: 93.86 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.4002, allocations: 37.77 kB / 1.068 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.056e-05/0.4002, allocations: 84.12 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.4003, allocations: 39.41 kB / 1.068 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.485e-05/0.4004, allocations: 29.7 kB / 1.068 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001964/0.4006, allocations: 314.8 kB / 1.069 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-05/0.4007, allocations: 19.98 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.504e-05/0.4008, allocations: 25.36 kB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.401, allocations: 60.3 kB / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.401, allocations: 12 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003031/0.4014, allocations: 97.61 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.4014, allocations: 4 kB / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4014, allocations: 0 / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.4014, allocations: 0 / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.4017, allocations: 23.94 kB / 1.069 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.4017, allocations: 3.984 kB / 1.069 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.826e-05/0.4017, allocations: 4 kB / 1.069 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.4018, allocations: 4 kB / 1.069 GB, free: 9.742 MB / 0.8419 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 0.0001398/0.4019, allocations: 120 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.402, allocations: 7.844 kB / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003432/0.4023, allocations: 105.6 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.4023, allocations: 0 / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4024, allocations: 0 / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.4024, allocations: 3.984 kB / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007348/0.4031, allocations: 358.5 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4031, allocations: 0 / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.4034, allocations: 19.94 kB / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.4034, allocations: 8 kB / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.4034, allocations: 96 / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.4035, allocations: 3.938 kB / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4035, allocations: 3.984 kB / 1.07 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.404, allocations: 219.6 kB / 1.07 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.005e-05/0.404, allocations: 77.11 kB / 1.07 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.4041, allocations: 0 / 1.07 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.4043, allocations: 8.031 kB / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.4043, allocations: 15.98 kB / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.4044, allocations: 4 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.595e-05/0.4044, allocations: 79.28 kB / 1.07 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.41e-07/0.4045, allocations: 0 / 1.07 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004794/0.4049, allocations: 35.98 kB / 1.07 GB, free: 8.59 MB / 0.8419 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.0003506/0.4053, allocations: 131.2 kB / 1.07 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003047/0.4056, allocations: 79.83 kB / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4057, allocations: 4.094 kB / 1.07 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/0.4058, allocations: 27.98 kB / 1.07 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.4062, allocations: 14.33 kB / 1.07 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008919/0.4071, allocations: 326.7 kB / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.4075, allocations: 0.6924 MB / 1.071 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.4076, allocations: 11.44 kB / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of SimCode: time 6.11e-07/0.4076, allocations: 4 kB / 1.071 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of Templates: time 0.004819/0.4125, allocations: 1.123 MB / 1.072 GB, free: 6.129 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)