Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/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_dp_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001211/0.001211, 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.001301/0.001301, allocations: 195 kB / 16.53 MB, free: 6.391 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.9969/0.9969, allocations: 143 MB / 433.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 79.81 kB / 0.5143 GB, free: 11.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1659, allocations: 82.03 MB / 0.5944 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00254/0.1685, allocations: 1.275 MB / 0.5956 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1697, allocations: 0.6227 MB / 0.5962 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.1697, allocations: 0 / 0.5962 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.841e-05/0.1698, allocations: 0 / 0.5962 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.648e-05/0.1698, allocations: 15.91 kB / 0.5963 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006585/0.1705, allocations: 150.6 kB / 0.5964 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.69e-05/0.1706, allocations: 27.91 kB / 0.5964 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.1706, allocations: 4 kB / 0.5964 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.953e-05/0.1707, allocations: 15.92 kB / 0.5965 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.33e-05/0.1707, allocations: 7.938 kB / 0.5965 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.1707, allocations: 4 kB / 0.5965 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005111/0.1713, allocations: 347.3 kB / 0.5968 GB, free: 7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.271e-05/0.1713, allocations: 15.92 kB / 0.5968 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.906e-05/0.1713, allocations: 11.94 kB / 0.5968 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.1716, allocations: 155.9 kB / 0.597 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1716, allocations: 0 / 0.597 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1716, allocations: 0 / 0.597 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.1717, allocations: 0 / 0.597 GB, free: 6.82 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004644/0.1721, allocations: 367.3 kB / 0.5973 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1722, allocations: 8.625 kB / 0.5973 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.1722, allocations: 38.75 kB / 0.5974 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.1723, allocations: 0.9375 kB / 0.5974 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.1724, allocations: 180.2 kB / 0.5975 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1724, allocations: 384 / 0.5975 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.1724, allocations: 8.375 kB / 0.5975 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.1726, allocations: 46.25 kB / 0.5976 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1726, allocations: 3.938 kB / 0.5976 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1726, allocations: 4 kB / 0.5976 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1726, allocations: 0 / 0.5976 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.803e-05/0.1727, allocations: 19.98 kB / 0.5976 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001889/0.1729, allocations: 169.6 kB / 0.5978 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.173, allocations: 66.48 kB / 0.5978 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.361e-05/0.1731, allocations: 24.86 kB / 0.5979 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.1731, allocations: 0 / 0.5979 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.1732, allocations: 38.55 kB / 0.5979 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.1732, allocations: 0 / 0.5979 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.00121/0.1744, allocations: 0.5879 MB / 0.5985 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1744, allocations: 55.39 kB / 0.5985 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.1745, allocations: 93.86 kB / 0.5986 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.1746, allocations: 29.7 kB / 0.5986 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.89e-05/0.1746, allocations: 88.27 kB / 0.5987 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.42e-05/0.1747, allocations: 39.39 kB / 0.5988 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.1747, allocations: 29.72 kB / 0.5988 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1749, allocations: 314.8 kB / 0.5991 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.1749, allocations: 32.02 kB / 0.5991 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-05/0.175, allocations: 19.94 kB / 0.5991 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.48e-05/0.1751, allocations: 64.78 kB / 0.5992 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1751, allocations: 0 / 0.5992 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001521/0.1752, allocations: 97.53 kB / 0.5993 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1753, allocations: 10.66 kB / 0.5993 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1753, allocations: 0 / 0.5993 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1753, allocations: 4 kB / 0.5993 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.1754, allocations: 23.92 kB / 0.5993 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1754, allocations: 0 / 0.5993 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.378e-05/0.1754, allocations: 0 / 0.5993 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.1755, allocations: 8 kB / 0.5993 GB, free: 4.066 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.11e-05/0.1755, allocations: 113.8 kB / 0.5995 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.1756, allocations: 7.938 kB / 0.5995 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.1758, allocations: 105.6 kB / 0.5996 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1758, allocations: 0 / 0.5996 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1758, allocations: 0 / 0.5996 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1758, allocations: 7.938 kB / 0.5996 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.1762, allocations: 350.4 kB / 0.5999 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1763, allocations: 0 / 0.5999 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1764, allocations: 31.92 kB / 0.5999 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1764, allocations: 0 / 0.5999 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1764, allocations: 0 / 0.5999 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1764, allocations: 4 kB / 0.5999 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1764, allocations: 0 / 0.5999 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.1767, allocations: 219.4 kB / 0.6002 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.1767, allocations: 85 kB / 0.6002 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.1767, allocations: 4.031 kB / 0.6002 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.1768, allocations: 7.938 kB / 0.6002 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.568e-05/0.1769, allocations: 7.984 kB / 0.6003 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1769, allocations: 8.062 kB / 0.6003 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.806e-05/0.1769, allocations: 75.28 kB / 0.6003 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1769, allocations: 0 / 0.6003 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002964/0.1772, allocations: 32 kB / 0.6004 GB, free: 2.918 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.0006975/0.1779, allocations: 0.784 MB / 0.6011 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001645/0.1781, allocations: 71.91 kB / 0.6012 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.1781, allocations: 8 kB / 0.6012 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.652e-05/0.1782, allocations: 31.92 kB / 0.6012 GB, free: 2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.1784, allocations: 8 kB / 0.6012 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.1799, allocations: 1.493 MB / 0.6027 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2399/0.4199, allocations: 0.6924 MB / 0.6034 GB, free: 43.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.311e-05/0.42, allocations: 8.453 kB / 0.6034 GB, free: 43.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.601e-05/0.42, allocations: 19.34 kB / 0.6034 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of SimCode: time 9.82e-07/0.42, allocations: 0 / 0.6034 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.4372, allocations: 2.052 MB / 0.6054 GB, free: 43.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.86, allocations: 13.33 kB / 0.6054 GB, free: 43.14 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)