Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001502/0.001502, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001485/0.001485, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.409/1.409, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 285.2 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.033/1.033, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002764/0.002764, allocations: 95.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.3996, allocations: 86.98 MB / 0.7671 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002235/0.4019, allocations: 1.272 MB / 0.7683 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.4029, allocations: 0.6283 MB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.033e-05/0.403, allocations: 0 / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.738e-05/0.403, allocations: 0 / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.589e-05/0.403, allocations: 11.91 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.4035, allocations: 147.4 kB / 0.7691 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.846e-05/0.4036, allocations: 27.92 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.4036, allocations: 0 / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.712e-05/0.4036, allocations: 23.91 kB / 0.7691 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.953e-05/0.4037, allocations: 11.98 kB / 0.7691 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.4037, allocations: 0 / 0.7691 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.4042, allocations: 347.3 kB / 0.7695 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.4042, allocations: 3.938 kB / 0.7695 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.809e-05/0.4043, allocations: 19.94 kB / 0.7695 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.4045, allocations: 153.2 kB / 0.7696 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.4045, allocations: 4 kB / 0.7696 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4045, allocations: 0 / 0.7696 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.4045, allocations: 0 / 0.7696 GB, free: 1.281 MB / 0.5294 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.0004501/0.405, allocations: 377.8 kB / 0.77 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.405, allocations: 8.031 kB / 0.77 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.177e-05/0.4051, allocations: 0.9375 kB / 0.77 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.4052, allocations: 164.4 kB / 0.7702 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.4052, allocations: 4.375 kB / 0.7702 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.4052, allocations: 16.31 kB / 0.7702 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.4053, allocations: 50.19 kB / 0.7702 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.4053, allocations: 4.188 kB / 0.7702 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.4053, allocations: 3.938 kB / 0.7702 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.4054, allocations: 0 / 0.7702 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.213e-05/0.4054, allocations: 19.98 kB / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001829/0.4056, allocations: 161.7 kB / 0.7704 GB, free: 356 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.4057, allocations: 58.56 kB / 0.7705 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/0.4057, allocations: 33.02 kB / 0.7705 GB, free: 252 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.4058, allocations: 3.984 kB / 0.7705 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.4058, allocations: 34.56 kB / 0.7705 GB, free: 204 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.4058, allocations: 3.938 kB / 0.7705 GB, free: 200 kB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.00114/0.4069, allocations: 0.5955 MB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.407, allocations: 51.41 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.164e-05/0.407, allocations: 101.8 kB / 0.7713 GB, free: 15.34 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4071, allocations: 25.7 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.4071, allocations: 84.12 kB / 0.7714 GB, free: 15.22 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.4071, allocations: 39.69 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.4072, allocations: 25.84 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4073, allocations: 322.8 kB / 0.7717 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.273e-05/0.4074, allocations: 16 kB / 0.7717 GB, free: 14.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.296e-05/0.4074, allocations: 25.98 kB / 0.7718 GB, free: 14.79 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.4075, allocations: 60.73 kB / 0.7718 GB, free: 14.72 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/0.4075, allocations: 0 / 0.7718 GB, free: 14.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001547/0.4077, allocations: 104.3 kB / 0.7719 GB, free: 14.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.4077, allocations: 8 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.4077, allocations: 0 / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.4077, allocations: 4 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.4078, allocations: 23.98 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.4078, allocations: 0 / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.766e-05/0.4078, allocations: 4 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.4078, allocations: 4 kB / 0.772 GB, free: 14.57 MB / 0.545 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.557e-05/0.4079, allocations: 116.2 kB / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.4079, allocations: 7.938 kB / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.4081, allocations: 109.5 kB / 0.7722 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4081, allocations: 8 kB / 0.7722 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.4081, allocations: 0 / 0.7722 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4081, allocations: 3.984 kB / 0.7722 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004197/0.4086, allocations: 358.3 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4086, allocations: 0 / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.4087, allocations: 19.98 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4087, allocations: 0 / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.4087, allocations: 8 kB / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4087, allocations: 0 / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4087, allocations: 4 kB / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.4089, allocations: 219.3 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.409, allocations: 81.14 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.409, allocations: 4 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.994e-05/0.4091, allocations: 7.984 kB / 0.7729 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.4091, allocations: 0 / 0.7729 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.4091, allocations: 8 kB / 0.7729 GB, free: 13.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.234e-05/0.4092, allocations: 83.27 kB / 0.773 GB, free: 13.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.4092, allocations: 4.156 kB / 0.773 GB, free: 13.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002641/0.4094, allocations: 35.88 kB / 0.773 GB, free: 13.41 MB / 0.545 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.0001973/0.4096, allocations: 135 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001391/0.4098, allocations: 59.86 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4098, allocations: 4 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.18e-05/0.4098, allocations: 31.92 kB / 0.7732 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.41, allocations: 9.625 kB / 0.7732 GB, free: 13.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005277/0.4106, allocations: 289.1 kB / 0.7735 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.4109, allocations: 0.6882 MB / 0.7742 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.325e-05/0.4109, allocations: 11.92 kB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.612e-05/0.4109, allocations: 15.44 kB / 0.7742 GB, free: 12.12 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.4109, allocations: 0 / 0.7742 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Templates: time 0.003614/0.4146, allocations: 0.9547 MB / 0.7751 GB, free: 11.2 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)