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.006993/0.006993, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.00141/0.00141, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00199/0.00199, allocations: 286.2 kB / 290.8 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 0.9154/0.9154, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 103.8 kB / 0.6814 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3824, allocations: 86.98 MB / 0.7664 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001934/0.3844, allocations: 1.264 MB / 0.7676 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009396/0.3854, allocations: 0.6206 MB / 0.7682 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.099e-05/0.3854, allocations: 0 / 0.7682 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/0.3854, allocations: 0 / 0.7682 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.04e-05/0.3855, allocations: 7.922 kB / 0.7682 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.386, allocations: 153.4 kB / 0.7684 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.064e-05/0.3861, allocations: 23.92 kB / 0.7684 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.3861, allocations: 4 kB / 0.7684 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.471e-05/0.3861, allocations: 15.92 kB / 0.7684 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.643e-05/0.3862, allocations: 11.98 kB / 0.7684 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.3862, allocations: 7.938 kB / 0.7684 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.3867, allocations: 343.4 kB / 0.7688 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.3867, allocations: 3.938 kB / 0.7688 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.3867, allocations: 19.86 kB / 0.7688 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.387, allocations: 161.9 kB / 0.769 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.387, allocations: 0 / 0.769 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.387, allocations: 0 / 0.769 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.387, allocations: 0 / 0.769 GB, free: 1.316 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.0003899/0.3874, allocations: 371.3 kB / 0.7693 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.3875, allocations: 8.031 kB / 0.7693 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.3875, allocations: 4.938 kB / 0.7693 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.3876, allocations: 164.3 kB / 0.7695 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.3876, allocations: 4.375 kB / 0.7695 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.3877, allocations: 12.38 kB / 0.7695 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.3878, allocations: 46.23 kB / 0.7695 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3878, allocations: 192 / 0.7695 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3878, allocations: 11.92 kB / 0.7695 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.3878, allocations: 0 / 0.7695 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.221e-05/0.3879, allocations: 16 kB / 0.7696 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.388, allocations: 169.6 kB / 0.7697 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.3882, allocations: 62.5 kB / 0.7698 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.3882, allocations: 28.84 kB / 0.7698 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.3882, allocations: 240 / 0.7698 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.3883, allocations: 46.53 kB / 0.7699 GB, free: 232 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.3883, allocations: 0 / 0.7699 GB, free: 232 kB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.001046/0.3893, allocations: 0.5836 MB / 0.7704 GB, free: 15.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.3894, allocations: 51.41 kB / 0.7705 GB, free: 15.49 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.232e-05/0.3894, allocations: 97.86 kB / 0.7706 GB, free: 15.38 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.3894, allocations: 25.7 kB / 0.7706 GB, free: 15.35 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.287e-05/0.3895, allocations: 84.14 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.3895, allocations: 39.44 kB / 0.7707 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.3896, allocations: 33.7 kB / 0.7707 GB, free: 15.19 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.935e-05/0.3897, allocations: 315 kB / 0.771 GB, free: 14.87 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.371e-05/0.3897, allocations: 31.92 kB / 0.7711 GB, free: 14.84 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.175e-05/0.3898, allocations: 19.98 kB / 0.7711 GB, free: 14.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.763e-05/0.3899, allocations: 59.42 kB / 0.7711 GB, free: 14.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.3899, allocations: 0 / 0.7711 GB, free: 14.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001442/0.39, allocations: 105.5 kB / 0.7712 GB, free: 14.65 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.39, allocations: 4.094 kB / 0.7713 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.39, allocations: 11.91 kB / 0.7713 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.3901, allocations: 0 / 0.7713 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.624e-05/0.3902, allocations: 27.94 kB / 0.7713 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3902, allocations: 0 / 0.7713 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.183e-05/0.3902, allocations: 0 / 0.7713 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.3902, allocations: 4 kB / 0.7713 GB, free: 14.61 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 7.605e-05/0.3903, allocations: 121.1 kB / 0.7714 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.3903, allocations: 7.938 kB / 0.7714 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.3905, allocations: 105.5 kB / 0.7715 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3905, allocations: 0 / 0.7715 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3905, allocations: 0 / 0.7715 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3905, allocations: 7.984 kB / 0.7715 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.3909, allocations: 346.5 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3909, allocations: 0 / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.391, allocations: 27.92 kB / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.391, allocations: 0 / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.391, allocations: 4 kB / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3911, allocations: 0 / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3911, allocations: 0 / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.3913, allocations: 227.3 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.3913, allocations: 81.02 kB / 0.7722 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.3914, allocations: 0 / 0.7722 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-05/0.3915, allocations: 8.031 kB / 0.7722 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.3915, allocations: 7.984 kB / 0.7722 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.3915, allocations: 0 / 0.7722 GB, free: 13.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.982e-05/0.3915, allocations: 79.28 kB / 0.7723 GB, free: 13.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3915, allocations: 0 / 0.7723 GB, free: 13.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002617/0.3918, allocations: 40.08 kB / 0.7723 GB, free: 13.46 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.0001844/0.392, allocations: 147.1 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001352/0.3921, allocations: 63.84 kB / 0.7725 GB, free: 13.24 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3921, allocations: 0 / 0.7725 GB, free: 13.24 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.3922, allocations: 35.94 kB / 0.7725 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.3924, allocations: 11.48 kB / 0.7726 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004704/0.3929, allocations: 284.8 kB / 0.7728 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.3931, allocations: 0.6846 MB / 0.7735 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.761e-05/0.3932, allocations: 4 kB / 0.7735 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.529e-05/0.3932, allocations: 15.44 kB / 0.7735 GB, free: 12.17 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.3932, allocations: 0 / 0.7735 GB, free: 12.17 MB / 0.545 GB Notification: Performance of Templates: time 0.002949/0.3962, allocations: 0.9782 MB / 0.7745 GB, free: 11.23 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)