Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.000992, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001062/0.001062, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.275/1.275, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001984/0.001984, allocations: 286.5 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9269/0.9269, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 98.03 kB / 0.5948 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1841, allocations: 86.98 MB / 0.6797 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002576/0.1867, allocations: 1.321 MB / 0.681 GB, free: 15.63 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1879, allocations: 0.6161 MB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.396e-05/0.188, allocations: 3.938 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.654e-05/0.188, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.318e-05/0.1881, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1891, allocations: 135.5 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.655e-05/0.1892, allocations: 15.94 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.299e-05/0.1893, allocations: 3.984 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.33e-05/0.1893, allocations: 11.94 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.269e-05/0.1894, allocations: 7.984 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.1894, allocations: 0 / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005694/0.19, allocations: 343.3 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.19, allocations: 7.922 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.19, allocations: 11.98 kB / 0.6822 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.1904, allocations: 147.9 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1904, allocations: 0 / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1904, allocations: 4 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1904, allocations: 4 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005526/0.191, allocations: 355.4 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.191, allocations: 12.62 kB / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.638e-05/0.1911, allocations: 30.75 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.1911, allocations: 8.844 kB / 0.6827 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.1913, allocations: 164.4 kB / 0.6828 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1913, allocations: 4.375 kB / 0.6828 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.253e-05/0.1913, allocations: 4.375 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.1915, allocations: 38.27 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1915, allocations: 7.922 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.1915, allocations: 0 / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1915, allocations: 4 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.733e-05/0.1916, allocations: 7.938 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002376/0.1918, allocations: 161.6 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.192, allocations: 42.61 kB / 0.6831 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.126e-05/0.1921, allocations: 24.94 kB / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.1921, allocations: 0 / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1921, allocations: 30.56 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.1921, allocations: 0 / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.000808/0.1929, allocations: 318.1 kB / 0.6835 GB, free: 12.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.193, allocations: 55.41 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.145e-05/0.1931, allocations: 105.8 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1931, allocations: 25.7 kB / 0.6836 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.642e-05/0.1932, allocations: 80.14 kB / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.1932, allocations: 23.66 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.795e-05/0.1933, allocations: 21.7 kB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1934, allocations: 310.8 kB / 0.6841 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.716e-05/0.1934, allocations: 12 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.254e-05/0.1935, allocations: 11.98 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.096e-05/0.1935, allocations: 32.86 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1935, allocations: 0 / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000107/0.1936, allocations: 77.47 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1937, allocations: 4 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1937, allocations: 4 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1937, allocations: 0 / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.009e-05/0.1938, allocations: 8 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.1938, allocations: 0 / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.799e-05/0.1938, allocations: 3.938 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.1938, allocations: 7.984 kB / 0.6842 GB, free: 12.09 MB / 494.1 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 (7): * Single equations (assignments): 7 * 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.704e-05/0.1939, allocations: 115.2 kB / 0.6843 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.1939, allocations: 7.938 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.1941, allocations: 77.59 kB / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1941, allocations: 0 / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1941, allocations: 0 / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.1941, allocations: 7.984 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.1945, allocations: 315.3 kB / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1945, allocations: 0 / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.1946, allocations: 16.03 kB / 0.6847 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1946, allocations: 4 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1946, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1946, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1946, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.1948, allocations: 188.2 kB / 0.6849 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1949, allocations: 81.09 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.1949, allocations: 8.094 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.042e-05/0.195, allocations: 0 / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.195, allocations: 4 kB / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.195, allocations: 4 kB / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.911e-05/0.1951, allocations: 83.27 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1951, allocations: 0 / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.1953, allocations: 20 kB / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0004779/0.1958, allocations: 0.7328 MB / 0.6858 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.1959, allocations: 36.22 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.196, allocations: 0 / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.196, allocations: 16.19 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.1962, allocations: 5.625 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.1974, allocations: 1.335 MB / 0.6872 GB, free: 8.832 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.1977, allocations: 0.6807 MB / 0.6878 GB, free: 8.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.413e-05/0.1977, allocations: 12.02 kB / 0.6878 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.1977, allocations: 15.44 kB / 0.6879 GB, free: 8.098 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1977, allocations: 0 / 0.6879 GB, free: 8.098 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.2098, allocations: 1.509 MB / 0.6893 GB, free: 6.797 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.2101, allocations: 257 kB / 0.6896 GB, free: 6.543 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.825, allocations: 4.062 kB / 0.6896 GB, free: 6.539 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)