Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001264/0.001264, 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.001226/0.001226, allocations: 192.4 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.371/1.371, 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.002335/0.002335, allocations: 275 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 97.72 kB / 0.6065 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1659, allocations: 89.14 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00262/0.1685, allocations: 1.282 MB / 0.6949 GB, free: 2.926 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.1696, allocations: 0.616 MB / 0.6955 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.206e-05/0.1696, allocations: 0 / 0.6955 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.1696, allocations: 3.938 kB / 0.6955 GB, free: 2.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.372e-05/0.1697, allocations: 4.609 kB / 0.6955 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005716/0.1703, allocations: 147.2 kB / 0.6956 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.567e-05/0.1703, allocations: 23.88 kB / 0.6956 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.755e-05/0.1704, allocations: 1.281 kB / 0.6956 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.334e-05/0.1704, allocations: 11.92 kB / 0.6956 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.85e-05/0.1705, allocations: 4 kB / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.649e-06/0.1705, allocations: 2.844 kB / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005306/0.171, allocations: 347.3 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.467e-05/0.171, allocations: 7.938 kB / 0.696 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.43e-05/0.1711, allocations: 7.984 kB / 0.696 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.1713, allocations: 148 kB / 0.6961 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1714, allocations: 0 / 0.6961 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1714, allocations: 3.938 kB / 0.6961 GB, free: 1.621 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1714, allocations: 0 / 0.6961 GB, free: 1.621 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.0004504/0.1718, allocations: 368.7 kB / 0.6965 GB, free: 1.211 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1719, allocations: 8.031 kB / 0.6965 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.904e-05/0.1719, allocations: 35.41 kB / 0.6965 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.1719, allocations: 4.938 kB / 0.6965 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1721, allocations: 162 kB / 0.6967 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1721, allocations: 4.312 kB / 0.6967 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.1721, allocations: 4.375 kB / 0.6967 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.1722, allocations: 42.25 kB / 0.6967 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1723, allocations: 7.938 kB / 0.6967 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.1723, allocations: 0 / 0.6967 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.1723, allocations: 0 / 0.6967 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.357e-05/0.1723, allocations: 15.92 kB / 0.6968 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.1725, allocations: 157.7 kB / 0.6969 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.1727, allocations: 46.55 kB / 0.697 GB, free: 0.625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.564e-05/0.1728, allocations: 20.86 kB / 0.697 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.1728, allocations: 0 / 0.697 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.1728, allocations: 34.64 kB / 0.697 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.1728, allocations: 0 / 0.697 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006265/0.1735, allocations: 314 kB / 0.6973 GB, free: 204 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.1735, allocations: 51.41 kB / 0.6974 GB, free: 140 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.822e-05/0.1736, allocations: 97.86 kB / 0.6974 GB, free: 32 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.1736, allocations: 33.69 kB / 0.6975 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.759e-05/0.1737, allocations: 84.12 kB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.1737, allocations: 15.81 kB / 0.6976 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.1738, allocations: 17.72 kB / 0.6976 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1739, allocations: 314.8 kB / 0.6979 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.75e-05/0.1739, allocations: 12 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.273e-05/0.174, allocations: 12 kB / 0.6979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.479e-05/0.174, allocations: 32.84 kB / 0.6979 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1741, allocations: 7.938 kB / 0.698 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001167/0.1742, allocations: 77.61 kB / 0.698 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1742, allocations: 8 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.1742, allocations: 0 / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1742, allocations: 0 / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.397e-05/0.1743, allocations: 8.062 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.1743, allocations: 4 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.1743, allocations: 7.938 kB / 0.6981 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.1743, allocations: 0 / 0.6981 GB, free: 15.38 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 (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.084e-05/0.1744, allocations: 117.8 kB / 0.6982 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.1744, allocations: 7.922 kB / 0.6982 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.1746, allocations: 73.53 kB / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1746, allocations: 4 kB / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1746, allocations: 0 / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1746, allocations: 0 / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003178/0.1749, allocations: 323.3 kB / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1749, allocations: 0 / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.021e-05/0.175, allocations: 12.03 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.175, allocations: 4 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-06/0.175, allocations: 0 / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.175, allocations: 0 / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.175, allocations: 4 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.1752, allocations: 180.2 kB / 0.6987 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.711e-05/0.1753, allocations: 81.05 kB / 0.6988 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1753, allocations: 4.094 kB / 0.6988 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.036e-05/0.1754, allocations: 11.98 kB / 0.6988 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.1754, allocations: 4.516 kB / 0.6988 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.1754, allocations: 0 / 0.6988 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.276e-05/0.1755, allocations: 83.27 kB / 0.6989 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1755, allocations: 0 / 0.6989 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002395/0.1757, allocations: 27.98 kB / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.000543/0.1763, allocations: 0.7367 MB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001066/0.1764, allocations: 35.98 kB / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1764, allocations: 0 / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.569e-05/0.1764, allocations: 23.92 kB / 0.6997 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.1766, allocations: 0.6562 kB / 0.6997 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.1779, allocations: 1.303 MB / 0.701 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1782, allocations: 0.6885 MB / 0.7017 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.1782, allocations: 7.984 kB / 0.7017 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.1783, allocations: 15.44 kB / 0.7017 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1783, allocations: 0 / 0.7017 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.2025, allocations: 1.618 MB / 0.7033 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.519, allocations: 14.28 kB / 0.7033 GB, free: 9.941 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_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_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)