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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9255/0.9255, allocations: 143.4 MB / 159.2 MB, free: 4.949 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 182.3 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 447.4 MB, free: 5.871 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 119.1 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001847/0.001847, allocations: 285.2 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 79.88 kB / 0.6886 GB, free: 3.848 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3245, allocations: 81.3 MB / 0.768 GB, free: 27.67 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002111/0.3266, allocations: 1.336 MB / 0.7693 GB, free: 26.33 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009158/0.3276, allocations: 0.6302 MB / 0.7699 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.3276, allocations: 0 / 0.7699 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.3276, allocations: 7.938 kB / 0.7699 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.723e-05/0.3277, allocations: 3.984 kB / 0.7699 GB, free: 25.69 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.3281, allocations: 123.5 kB / 0.77 GB, free: 25.57 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 5.179e-05/0.3282, allocations: 31.86 kB / 0.77 GB, free: 25.54 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.3282, allocations: 8 kB / 0.77 GB, free: 25.53 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.2e-05/0.3283, allocations: 11.98 kB / 0.7701 GB, free: 25.52 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.844e-05/0.3283, allocations: 19.92 kB / 0.7701 GB, free: 25.5 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.3283, allocations: 0 / 0.7701 GB, free: 25.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003822/0.3287, allocations: 343.3 kB / 0.7704 GB, free: 25.16 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.279e-05/0.3288, allocations: 7.984 kB / 0.7704 GB, free: 25.16 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.567e-05/0.3288, allocations: 11.94 kB / 0.7704 GB, free: 25.14 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.329, allocations: 158.3 kB / 0.7706 GB, free: 24.99 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.329, allocations: 0 / 0.7706 GB, free: 24.99 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.329, allocations: 4 kB / 0.7706 GB, free: 24.99 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.329, allocations: 0 / 0.7706 GB, free: 24.99 MB / 458.7 MB 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.0003264/0.3294, allocations: 371.4 kB / 0.7709 GB, free: 24.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.3294, allocations: 8.031 kB / 0.7709 GB, free: 24.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.3295, allocations: 8.844 kB / 0.7709 GB, free: 24.56 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.899e-05/0.3296, allocations: 164.3 kB / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3296, allocations: 4.375 kB / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.3296, allocations: 384 / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.3297, allocations: 58.22 kB / 0.7712 GB, free: 24.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3297, allocations: 4.188 kB / 0.7712 GB, free: 24.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.3297, allocations: 7.922 kB / 0.7712 GB, free: 24.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3297, allocations: 4 kB / 0.7712 GB, free: 24.28 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.319e-05/0.3298, allocations: 15.98 kB / 0.7712 GB, free: 24.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.3299, allocations: 161.7 kB / 0.7714 GB, free: 24.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.651e-05/0.33, allocations: 62.5 kB / 0.7714 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.322e-05/0.3301, allocations: 28.84 kB / 0.7714 GB, free: 23.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.3301, allocations: 4.234 kB / 0.7714 GB, free: 23.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.169e-05/0.3301, allocations: 30.56 kB / 0.7715 GB, free: 23.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.3301, allocations: 4 kB / 0.7715 GB, free: 23.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=11): time 0.000921/0.331, allocations: 0.5875 MB / 0.772 GB, free: 23.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.3311, allocations: 59.41 kB / 0.7721 GB, free: 23.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.556e-05/0.3311, allocations: 93.86 kB / 0.7722 GB, free: 23.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.3311, allocations: 29.7 kB / 0.7722 GB, free: 23.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.76e-05/0.3312, allocations: 84.12 kB / 0.7723 GB, free: 22.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.3312, allocations: 39.55 kB / 0.7723 GB, free: 22.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.3312, allocations: 29.64 kB / 0.7724 GB, free: 22.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.505e-05/0.3313, allocations: 318.8 kB / 0.7727 GB, free: 22.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.683e-05/0.3313, allocations: 28.11 kB / 0.7727 GB, free: 22.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.3314, allocations: 26.8 kB / 0.7727 GB, free: 22.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.61e-05/0.3314, allocations: 52.86 kB / 0.7728 GB, free: 22.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3314, allocations: 0 / 0.7728 GB, free: 22.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001125/0.3316, allocations: 97.61 kB / 0.7729 GB, free: 22.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.3316, allocations: 8 kB / 0.7729 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3316, allocations: 0 / 0.7729 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3316, allocations: 0 / 0.7729 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.3317, allocations: 23.94 kB / 0.7729 GB, free: 22.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3317, allocations: 4 kB / 0.7729 GB, free: 22.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.267e-05/0.3317, allocations: 4 kB / 0.7729 GB, free: 22.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.3318, allocations: 7.984 kB / 0.7729 GB, free: 22.29 MB / 458.7 MB 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 4.805e-05/0.3318, allocations: 109.8 kB / 0.773 GB, free: 22.17 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.3318, allocations: 11.84 kB / 0.773 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.332, allocations: 105.5 kB / 0.7731 GB, free: 22.05 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.332, allocations: 4 kB / 0.7731 GB, free: 22.04 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.332, allocations: 0 / 0.7731 GB, free: 22.04 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.332, allocations: 3.984 kB / 0.7731 GB, free: 22.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.3323, allocations: 346.5 kB / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3323, allocations: 7.984 kB / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.233e-05/0.3324, allocations: 23.94 kB / 0.7735 GB, free: 21.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3324, allocations: 0 / 0.7735 GB, free: 21.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.3324, allocations: 4 kB / 0.7735 GB, free: 21.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3324, allocations: 4 kB / 0.7735 GB, free: 21.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3324, allocations: 0 / 0.7735 GB, free: 21.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.3344, allocations: 1.314 MB / 0.7748 GB, free: 20.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.3345, allocations: 81.17 kB / 0.7749 GB, free: 20.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-06/0.3345, allocations: 4.031 kB / 0.7749 GB, free: 20.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/0.3346, allocations: 11.92 kB / 0.7749 GB, free: 20.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.256e-05/0.3346, allocations: 4 kB / 0.7749 GB, free: 20.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.3346, allocations: 8 kB / 0.7749 GB, free: 20.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.842e-05/0.3346, allocations: 79.27 kB / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3346, allocations: 0 / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003237/0.335, allocations: 43.94 kB / 0.775 GB, free: 19.89 MB / 458.7 MB 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.0001774/0.3352, allocations: 127.8 kB / 0.7751 GB, free: 19.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001227/0.3353, allocations: 66.72 kB / 0.7752 GB, free: 19.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3353, allocations: 0 / 0.7752 GB, free: 19.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 4.265e-05/0.3353, allocations: 39.86 kB / 0.7752 GB, free: 19.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.3356, allocations: 11.03 kB / 0.7752 GB, free: 19.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004713/0.336, allocations: 449.2 kB / 0.7757 GB, free: 19.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.211e-05/0.3361, allocations: 0.6887 MB / 0.7763 GB, free: 18.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.239e-05/0.3362, allocations: 4 kB / 0.7764 GB, free: 18.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.992e-05/0.3362, allocations: 23.42 kB / 0.7764 GB, free: 18.43 MB / 458.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3362, allocations: 4 kB / 0.7764 GB, free: 18.42 MB / 458.7 MB Notification: Performance of Templates: time 0.002785/0.339, allocations: 0.9558 MB / 0.7773 GB, free: 17.5 MB / 458.7 MB 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)