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.005412/0.005412, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001331/0.001331, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 279.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.007/1.007, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 100.4 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1672, allocations: 86.97 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002364/0.1696, allocations: 1.284 MB / 0.7672 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1707, allocations: 0.615 MB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.581e-05/0.1708, allocations: 0 / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.41e-05/0.1708, allocations: 3.938 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.603e-05/0.1709, allocations: 0 / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.1714, allocations: 155.3 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.68e-05/0.1715, allocations: 31.92 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.925e-05/0.1716, allocations: 3.938 kB / 0.768 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.953e-05/0.1716, allocations: 11.94 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.516e-05/0.1717, allocations: 19.91 kB / 0.768 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.1717, allocations: 4 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005303/0.1722, allocations: 335.4 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.1723, allocations: 7.984 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.071e-05/0.1723, allocations: 15.92 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.1726, allocations: 159.7 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1726, allocations: 0 / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.763e-06/0.1726, allocations: 4 kB / 0.7685 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.1726, allocations: 0 / 0.7685 GB, free: 6.285 MB / 0.5606 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.0005207/0.1732, allocations: 371.1 kB / 0.7688 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1732, allocations: 8.031 kB / 0.7688 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.1733, allocations: 42.69 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.05e-05/0.1733, allocations: 0.9375 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.1735, allocations: 164.3 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1735, allocations: 4.375 kB / 0.769 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.1735, allocations: 12.27 kB / 0.7691 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.1737, allocations: 54.23 kB / 0.7691 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.1737, allocations: 7.938 kB / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1737, allocations: 0 / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1737, allocations: 0 / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.352e-05/0.1738, allocations: 19.98 kB / 0.7691 GB, free: 5.512 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.174, allocations: 165.6 kB / 0.7693 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.1741, allocations: 58.5 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.923e-05/0.1742, allocations: 32.84 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1742, allocations: 4 kB / 0.7694 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.1743, allocations: 30.56 kB / 0.7694 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1743, allocations: 0 / 0.7694 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001254/0.1755, allocations: 0.5954 MB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.1756, allocations: 51.41 kB / 0.77 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.789e-05/0.1757, allocations: 109.7 kB / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.1757, allocations: 25.7 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.1757, allocations: 80.14 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.1758, allocations: 35.7 kB / 0.7703 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.036e-05/0.1758, allocations: 29.7 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.176, allocations: 319 kB / 0.7706 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.195e-05/0.176, allocations: 19.98 kB / 0.7706 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.504e-05/0.1761, allocations: 23.98 kB / 0.7707 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.698e-05/0.1762, allocations: 59.98 kB / 0.7707 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.1762, allocations: 0 / 0.7707 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000157/0.1764, allocations: 101.6 kB / 0.7708 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1764, allocations: 4 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1764, allocations: 0 / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1764, allocations: 0 / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1765, allocations: 27.92 kB / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1765, allocations: 4 kB / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.681e-05/0.1766, allocations: 4 kB / 0.7709 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1766, allocations: 4 kB / 0.7709 GB, free: 3.535 MB / 0.5606 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.623e-05/0.1767, allocations: 114.5 kB / 0.771 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.1767, allocations: 3.938 kB / 0.771 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002105/0.1769, allocations: 117.5 kB / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1769, allocations: 0 / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1769, allocations: 3.984 kB / 0.7711 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1769, allocations: 0 / 0.7711 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.1774, allocations: 354.5 kB / 0.7714 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1774, allocations: 4 kB / 0.7714 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.1775, allocations: 19.94 kB / 0.7714 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1775, allocations: 4 kB / 0.7714 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.1775, allocations: 4 kB / 0.7715 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1776, allocations: 3.984 kB / 0.7715 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1776, allocations: 0 / 0.7715 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.1778, allocations: 219.4 kB / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.1779, allocations: 77.11 kB / 0.7717 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.1779, allocations: 4 kB / 0.7717 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.178, allocations: 4.031 kB / 0.7717 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.178, allocations: 11.92 kB / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.1781, allocations: 8 kB / 0.7718 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.1781, allocations: 75.28 kB / 0.7718 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1781, allocations: 0 / 0.7718 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002809/0.1784, allocations: 39.86 kB / 0.7719 GB, free: 2.383 MB / 0.5606 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.000705/0.1791, allocations: 0.7858 MB / 0.7726 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001891/0.1793, allocations: 67.97 kB / 0.7727 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.1793, allocations: 0 / 0.7727 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.31e-05/0.1794, allocations: 39.86 kB / 0.7727 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.1796, allocations: 4.062 kB / 0.7728 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2835/0.4632, allocations: 1.506 MB / 0.7742 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.4633, allocations: 0.6881 MB / 0.7749 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.671e-05/0.4634, allocations: 7.641 kB / 0.7749 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.4635, allocations: 19.27 kB / 0.7749 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/0.4635, allocations: 0.5938 kB / 0.7749 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.4901, allocations: 2.081 MB / 0.777 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/8.082, allocations: 1.812 kB / 0.777 GB, free: 13.05 MB / 0.5606 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)