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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001309/0.001309, allocations: 108.3 kB / 16.41 MB, free: 6.453 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.001243/0.001243, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 59.91 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9218/0.9233, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002842/0.9262, allocations: 1.294 MB / 1.21 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.9273, allocations: 0.6227 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.109e-05/0.9274, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.883e-05/0.9274, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.382e-05/0.9275, allocations: 3.938 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007649/0.9283, allocations: 155.4 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.951e-05/0.9284, allocations: 23.92 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.416e-05/0.9284, allocations: 4 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.877e-05/0.9285, allocations: 11.94 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.527e-05/0.9286, allocations: 19.91 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.9286, allocations: 4 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000585/0.9292, allocations: 339.3 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.9292, allocations: 7.984 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.17e-05/0.9292, allocations: 15.92 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.9296, allocations: 147.5 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.9296, allocations: 3.984 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.773e-06/0.9296, allocations: 4 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.9296, allocations: 0 / 1.211 GB, free: 10.96 MB / 0.9356 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.0004872/0.9301, allocations: 369.3 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.9301, allocations: 12.02 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.9302, allocations: 8.844 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.9303, allocations: 160.4 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.9303, allocations: 4.375 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.9304, allocations: 8.312 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.9305, allocations: 54.19 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.9305, allocations: 192 / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.9306, allocations: 3.938 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.9306, allocations: 4 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.586e-05/0.9306, allocations: 15.98 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.9308, allocations: 165.7 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.931, allocations: 58.56 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.327e-05/0.931, allocations: 32.84 kB / 1.212 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.9311, allocations: 7.922 kB / 1.212 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.9311, allocations: 42.5 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.9311, allocations: 0 / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001236/0.9324, allocations: 0.5878 MB / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.9324, allocations: 51.41 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.817e-05/0.9325, allocations: 97.86 kB / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.9325, allocations: 25.7 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.373e-05/0.9326, allocations: 84.08 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.9326, allocations: 39.45 kB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.9327, allocations: 29.7 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9328, allocations: 315 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.266e-05/0.9329, allocations: 27.98 kB / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.723e-05/0.9329, allocations: 16 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.231e-05/0.933, allocations: 60.09 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.933, allocations: 0 / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001698/0.9332, allocations: 105.5 kB / 1.213 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.9332, allocations: 4 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.9332, allocations: 0 / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.9332, allocations: 4 kB / 1.213 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.9333, allocations: 27.98 kB / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.9334, allocations: 4 kB / 1.213 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.559e-05/0.9334, allocations: 96 / 1.213 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.9334, allocations: 7.938 kB / 1.213 GB, free: 8.254 MB / 0.9356 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 8.723e-05/0.9335, allocations: 113.8 kB / 1.213 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.155e-05/0.9335, allocations: 11.92 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002097/0.9337, allocations: 105.6 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.9338, allocations: 0 / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.9338, allocations: 0 / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.9338, allocations: 0 / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.9342, allocations: 366.6 kB / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.9342, allocations: 0 / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.9343, allocations: 19.98 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.9343, allocations: 0 / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.9344, allocations: 8 kB / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.9344, allocations: 0 / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9344, allocations: 0 / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002541/0.9346, allocations: 223.2 kB / 1.214 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.9347, allocations: 89.11 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.9347, allocations: 0 / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.908e-05/0.9348, allocations: 4 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.481e-05/0.9348, allocations: 11.98 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/0.9348, allocations: 0 / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.78e-05/0.9349, allocations: 79.28 kB / 1.214 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9349, allocations: 0 / 1.214 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002846/0.9352, allocations: 35.94 kB / 1.214 GB, free: 7.094 MB / 0.9356 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.0002451/0.9354, allocations: 139.3 kB / 1.214 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001579/0.9356, allocations: 67.8 kB / 1.215 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.9356, allocations: 0 / 1.215 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.132e-05/0.9357, allocations: 39.92 kB / 1.215 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.9359, allocations: 3.938 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005603/0.9365, allocations: 310.7 kB / 1.215 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.9367, allocations: 0.6923 MB / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.9368, allocations: 15.44 kB / 1.216 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.9368, allocations: 0 / 1.216 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of Templates: time 0.003047/0.9398, allocations: 1.134 MB / 1.217 GB, free: 4.645 MB / 0.9356 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)