Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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.001433/0.001433, allocations: 108 kB / 15.61 MB, free: 152 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.001416/0.001416, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002459/0.002459, allocations: 290.7 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.033/1.033, allocations: 178.5 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002602/0.002602, allocations: 102 kB / 0.6066 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1595, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002655/0.1622, allocations: 1.464 MB / 0.695 GB, free: 2.762 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1633, allocations: 0.6425 MB / 0.6957 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.1633, allocations: 0 / 0.6957 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.789e-05/0.1633, allocations: 7.938 kB / 0.6957 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.079e-05/0.1634, allocations: 4.875 kB / 0.6957 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005029/0.1639, allocations: 161.8 kB / 0.6958 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.813e-05/0.164, allocations: 47.84 kB / 0.6959 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.164, allocations: 4 kB / 0.6959 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.696e-05/0.1641, allocations: 31.91 kB / 0.6959 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.695e-05/0.1642, allocations: 27.84 kB / 0.6959 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.1642, allocations: 4 kB / 0.6959 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004873/0.1647, allocations: 347.3 kB / 0.6963 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.873e-05/0.1647, allocations: 12 kB / 0.6963 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.1647, allocations: 24.48 kB / 0.6963 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.165, allocations: 175.8 kB / 0.6965 GB, free: 1.297 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.165, allocations: 0.6562 kB / 0.6965 GB, free: 1.297 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.165, allocations: 3.938 kB / 0.6965 GB, free: 1.293 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1651, allocations: 4 kB / 0.6965 GB, free: 1.289 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005925/0.1657, allocations: 401 kB / 0.6969 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1657, allocations: 8.031 kB / 0.6969 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.61e-05/0.1657, allocations: 42.73 kB / 0.6969 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.1658, allocations: 8.844 kB / 0.6969 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.1659, allocations: 164.3 kB / 0.6971 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.166, allocations: 8.375 kB / 0.6971 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.166, allocations: 8.375 kB / 0.6971 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.1662, allocations: 78.22 kB / 0.6972 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1662, allocations: 7.875 kB / 0.6972 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.1663, allocations: 4 kB / 0.6972 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1663, allocations: 0 / 0.6972 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000231/0.1665, allocations: 47.95 kB / 0.6972 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.167, allocations: 324.7 kB / 0.6975 GB, free: 60 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.1673, allocations: 78.47 kB / 0.6976 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.1675, allocations: 32.83 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.1675, allocations: 3.938 kB / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1675, allocations: 42.56 kB / 0.6977 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1675, allocations: 0 / 0.6977 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.00164/0.1692, allocations: 0.6423 MB / 0.6983 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.1692, allocations: 55.41 kB / 0.6984 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.846e-05/0.1693, allocations: 101.8 kB / 0.6985 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.1693, allocations: 25.7 kB / 0.6985 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.1694, allocations: 99.97 kB / 0.6986 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.1694, allocations: 39.39 kB / 0.6986 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.1695, allocations: 29.84 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1696, allocations: 322.8 kB / 0.699 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1698, allocations: 31.98 kB / 0.699 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.1699, allocations: 36.47 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.1702, allocations: 66.58 kB / 0.6991 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1702, allocations: 0 / 0.6991 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003144/0.1705, allocations: 121.6 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.1705, allocations: 4 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1705, allocations: 4 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1705, allocations: 0 / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1707, allocations: 35.92 kB / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1707, allocations: 4.031 kB / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.404e-05/0.1708, allocations: 11.92 kB / 0.6993 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1708, allocations: 0 / 0.6993 GB, free: 14.12 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.708e-05/0.1709, allocations: 117.8 kB / 0.6994 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.1709, allocations: 7.906 kB / 0.6994 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.1713, allocations: 133.5 kB / 0.6995 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1713, allocations: 4 kB / 0.6995 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1713, allocations: 3.938 kB / 0.6995 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1713, allocations: 0 / 0.6995 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005776/0.1719, allocations: 386.5 kB / 0.6999 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1719, allocations: 0 / 0.6999 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.1721, allocations: 27.92 kB / 0.6999 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1721, allocations: 3.938 kB / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.1721, allocations: 0 / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1721, allocations: 0 / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1721, allocations: 7.938 kB / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005074/0.1726, allocations: 253.6 kB / 0.7002 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.1727, allocations: 77.11 kB / 0.7002 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.1727, allocations: 11.92 kB / 0.7002 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.1729, allocations: 8.031 kB / 0.7002 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1729, allocations: 3.984 kB / 0.7003 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.1729, allocations: 4 kB / 0.7003 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.459e-05/0.1729, allocations: 83.28 kB / 0.7003 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.173, allocations: 8 kB / 0.7003 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002676/0.1732, allocations: 39.98 kB / 0.7004 GB, free: 12.86 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.00087/0.1741, allocations: 0.8138 MB / 0.7012 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003305/0.1744, allocations: 99.81 kB / 0.7013 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1745, allocations: 0 / 0.7013 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1746, allocations: 43.92 kB / 0.7013 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.1749, allocations: 12.64 kB / 0.7013 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.177, allocations: 1.592 MB / 0.7029 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.1773, allocations: 0.6931 MB / 0.7036 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.485e-05/0.1773, allocations: 12.67 kB / 0.7036 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.1774, allocations: 27.42 kB / 0.7036 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1774, allocations: 0 / 0.7036 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.2004, allocations: 2.313 MB / 0.7059 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.295/7.495, allocations: 8.625 kB / 0.7059 GB, free: 7.301 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)