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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.001284/0.001284, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 195.9 kB / 16.53 MB, free: 6.672 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.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002427/0.002427, allocations: 294.2 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002669/0.002669, allocations: 95.98 kB / 0.6065 GB, free: 24.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1804, allocations: 89.14 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002452/0.1829, allocations: 1.277 MB / 0.6948 GB, free: 2.965 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.184, allocations: 0.6276 MB / 0.6955 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.471e-05/0.184, allocations: 0.6562 kB / 0.6955 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.1841, allocations: 0 / 0.6955 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.591e-05/0.1841, allocations: 9.625 kB / 0.6955 GB, free: 2.332 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005728/0.1847, allocations: 145.9 kB / 0.6956 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.144e-05/0.1848, allocations: 30.56 kB / 0.6956 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.1848, allocations: 4 kB / 0.6956 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.1849, allocations: 11.94 kB / 0.6957 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.1849, allocations: 19.92 kB / 0.6957 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.1849, allocations: 0 / 0.6957 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005458/0.1855, allocations: 347.3 kB / 0.696 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.1855, allocations: 3.984 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.447e-05/0.1855, allocations: 19.94 kB / 0.696 GB, free: 1.766 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.1858, allocations: 155.8 kB / 0.6962 GB, free: 1.613 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1858, allocations: 0 / 0.6962 GB, free: 1.613 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1858, allocations: 0 / 0.6962 GB, free: 1.613 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1859, allocations: 4 kB / 0.6962 GB, free: 1.609 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004462/0.1863, allocations: 363.4 kB / 0.6965 GB, free: 1.203 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1864, allocations: 12.03 kB / 0.6965 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.352e-05/0.1864, allocations: 30.75 kB / 0.6966 GB, free: 1.152 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.1864, allocations: 4.938 kB / 0.6966 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.1866, allocations: 164.3 kB / 0.6967 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1866, allocations: 12.31 kB / 0.6967 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.1866, allocations: 12.34 kB / 0.6968 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.1867, allocations: 50.25 kB / 0.6968 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1868, allocations: 7.875 kB / 0.6968 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1868, allocations: 0 / 0.6968 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1868, allocations: 4 kB / 0.6968 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.929e-05/0.1869, allocations: 15.98 kB / 0.6968 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.187, allocations: 169.6 kB / 0.697 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.1872, allocations: 66.5 kB / 0.6971 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.635e-05/0.1872, allocations: 28.84 kB / 0.6971 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.1873, allocations: 0 / 0.6971 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.1873, allocations: 30.56 kB / 0.6971 GB, free: 496 kB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.1873, allocations: 0 / 0.6971 GB, free: 496 kB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00121/0.1885, allocations: 0.5953 MB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1886, allocations: 55.41 kB / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.416e-05/0.1886, allocations: 93.84 kB / 0.6978 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.1887, allocations: 33.7 kB / 0.6979 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.1887, allocations: 80.14 kB / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.1888, allocations: 39.58 kB / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/0.1888, allocations: 25.72 kB / 0.698 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.189, allocations: 318.8 kB / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.936e-05/0.189, allocations: 16 kB / 0.6983 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.056e-05/0.1891, allocations: 27.98 kB / 0.6983 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.468e-05/0.1892, allocations: 55.05 kB / 0.6984 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1892, allocations: 3.984 kB / 0.6984 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000154/0.1893, allocations: 101.5 kB / 0.6985 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1894, allocations: 8 kB / 0.6985 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1894, allocations: 4 kB / 0.6985 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1894, allocations: 0 / 0.6985 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1895, allocations: 27.92 kB / 0.6985 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.1895, allocations: 4 kB / 0.6985 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.493e-05/0.1895, allocations: 4 kB / 0.6985 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.1895, allocations: 0 / 0.6985 GB, free: 14.86 MB / 0.4981 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.406e-05/0.1896, allocations: 113.8 kB / 0.6987 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.1897, allocations: 7.938 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.1899, allocations: 109.6 kB / 0.6988 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1899, allocations: 7.938 kB / 0.6988 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1899, allocations: 3.938 kB / 0.6988 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1899, allocations: 0 / 0.6988 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004485/0.1904, allocations: 354.4 kB / 0.6991 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1904, allocations: 3.938 kB / 0.6991 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.1905, allocations: 23.98 kB / 0.6991 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1905, allocations: 0 / 0.6991 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-06/0.1905, allocations: 3.938 kB / 0.6991 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1905, allocations: 8 kB / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1905, allocations: 0 / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002592/0.1908, allocations: 211.5 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.867e-05/0.1909, allocations: 85.05 kB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1909, allocations: 4 kB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.389e-05/0.191, allocations: 3.984 kB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.124e-05/0.191, allocations: 4 kB / 0.6994 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.191, allocations: 4 kB / 0.6995 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.889e-05/0.1911, allocations: 91.27 kB / 0.6995 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1911, allocations: 4 kB / 0.6995 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002593/0.1913, allocations: 28 kB / 0.6996 GB, free: 13.71 MB / 0.4981 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.0006726/0.192, allocations: 0.7808 MB / 0.7003 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001702/0.1922, allocations: 76 kB / 0.7004 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1922, allocations: 0 / 0.7004 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.94e-05/0.1923, allocations: 27.94 kB / 0.7004 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.1925, allocations: 12.73 kB / 0.7004 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1941, allocations: 1.486 MB / 0.7019 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.1944, allocations: 0.6885 MB / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.1945, allocations: 11.92 kB / 0.7026 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.1945, allocations: 19.44 kB / 0.7026 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1945, allocations: 4 kB / 0.7026 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.2234, allocations: 2.053 MB / 0.7046 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.307/7.53, allocations: 6.5 kB / 0.7046 GB, free: 8.586 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)