Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001455/0.001455, allocations: 108 kB / 15.6 MB, free: 132 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.00115/0.00115, allocations: 198.2 kB / 16.54 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9748/0.9748, allocations: 143 MB / 433.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.91 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1858, allocations: 82.04 MB / 0.5944 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002805/0.1886, allocations: 1.464 MB / 0.5958 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1897, allocations: 0.6344 MB / 0.5964 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.711e-05/0.1898, allocations: 0 / 0.5964 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.596e-05/0.1899, allocations: 3.938 kB / 0.5965 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.961e-05/0.1899, allocations: 7.938 kB / 0.5965 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.1906, allocations: 163.3 kB / 0.5966 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.277e-05/0.1907, allocations: 47.86 kB / 0.5967 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.373e-05/0.1907, allocations: 11.98 kB / 0.5967 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.214e-05/0.1908, allocations: 19.92 kB / 0.5967 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.432e-05/0.1909, allocations: 27.91 kB / 0.5967 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.1909, allocations: 4 kB / 0.5967 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005043/0.1914, allocations: 351.3 kB / 0.5971 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.1914, allocations: 7.938 kB / 0.5971 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.941e-05/0.1915, allocations: 27.84 kB / 0.5971 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.1918, allocations: 183.8 kB / 0.5973 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1918, allocations: 0 / 0.5973 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1918, allocations: 0 / 0.5973 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.1918, allocations: 0 / 0.5973 GB, free: 6.551 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006141/0.1925, allocations: 403.2 kB / 0.5977 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1925, allocations: 16.62 kB / 0.5977 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.807e-05/0.1925, allocations: 30.75 kB / 0.5977 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.1926, allocations: 12.84 kB / 0.5977 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1927, allocations: 168.3 kB / 0.5979 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.1927, allocations: 384 / 0.5979 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.1928, allocations: 12.38 kB / 0.5979 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.193, allocations: 78.2 kB / 0.598 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.193, allocations: 3.938 kB / 0.598 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.193, allocations: 0 / 0.598 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.193, allocations: 8 kB / 0.598 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.1933, allocations: 51.95 kB / 0.598 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.1938, allocations: 320.6 kB / 0.5983 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.1941, allocations: 78.53 kB / 0.5984 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.1942, allocations: 28.84 kB / 0.5984 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.1942, allocations: 4 kB / 0.5984 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1943, allocations: 30.56 kB / 0.5985 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.1943, allocations: 0 / 0.5985 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001703/0.196, allocations: 0.6536 MB / 0.5991 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.196, allocations: 51.41 kB / 0.5991 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.934e-05/0.1961, allocations: 113.8 kB / 0.5993 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.1961, allocations: 25.8 kB / 0.5993 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.1962, allocations: 91.98 kB / 0.5994 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.1962, allocations: 39.44 kB / 0.5994 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.1963, allocations: 33.7 kB / 0.5994 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.1964, allocations: 314.8 kB / 0.5997 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1965, allocations: 31.97 kB / 0.5998 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.1967, allocations: 37.98 kB / 0.5998 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.1969, allocations: 72.95 kB / 0.5999 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1969, allocations: 0 / 0.5999 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003193/0.1973, allocations: 128.1 kB / 0.6 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1973, allocations: 10.5 kB / 0.6 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1973, allocations: 0 / 0.6 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1973, allocations: 0 / 0.6 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.1975, allocations: 31.92 kB / 0.6 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1975, allocations: 3.938 kB / 0.6 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.492e-05/0.1976, allocations: 4 kB / 0.6 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.1976, allocations: 7.984 kB / 0.6001 GB, free: 3.383 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 7.662e-05/0.1977, allocations: 121.8 kB / 0.6002 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.1977, allocations: 7.906 kB / 0.6002 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.1981, allocations: 125.5 kB / 0.6003 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1981, allocations: 0 / 0.6003 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1981, allocations: 3.938 kB / 0.6003 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1981, allocations: 7.984 kB / 0.6003 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000629/0.1987, allocations: 374.4 kB / 0.6007 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1988, allocations: 0 / 0.6007 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.1989, allocations: 23.98 kB / 0.6007 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.1989, allocations: 7.938 kB / 0.6007 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1989, allocations: 11.98 kB / 0.6007 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.199, allocations: 3.938 kB / 0.6007 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.199, allocations: 0 / 0.6007 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.1995, allocations: 251.5 kB / 0.6009 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.1996, allocations: 81.14 kB / 0.601 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.1996, allocations: 7.938 kB / 0.601 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.1997, allocations: 12.05 kB / 0.601 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.1997, allocations: 4 kB / 0.601 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.1998, allocations: 8 kB / 0.6011 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.755e-05/0.1998, allocations: 83.27 kB / 0.6011 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1998, allocations: 0 / 0.6011 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002738/0.2001, allocations: 36 kB / 0.6012 GB, free: 2.125 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0008208/0.2009, allocations: 0.8215 MB / 0.602 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000328/0.2013, allocations: 91.89 kB / 0.6021 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2013, allocations: 0 / 0.6021 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.2014, allocations: 43.97 kB / 0.6021 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.2017, allocations: 12.06 kB / 0.6021 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.248/0.4497, allocations: 1.583 MB / 0.6037 GB, free: 43.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.4499, allocations: 0.6925 MB / 0.6043 GB, free: 42.45 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.858e-05/0.45, allocations: 14.91 kB / 0.6043 GB, free: 42.44 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.4501, allocations: 23.7 kB / 0.6044 GB, free: 42.43 MB / 0.4981 GB Notification: Performance of SimCode: time 8.81e-07/0.4501, allocations: 0 / 0.6044 GB, free: 42.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.4696, allocations: 2.319 MB / 0.6066 GB, free: 42.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.367/7.837, allocations: 23.05 kB / 0.6067 GB, free: 42.16 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)