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.001678/0.001678, 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.002641/0.002641, allocations: 196.4 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 2.223/2.223, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003394/0.003394, allocations: 274.6 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.266/1.266, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 99.64 kB / 0.5954 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1881, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002758/0.1909, allocations: 1.277 MB / 0.6815 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1922, allocations: 0.6111 MB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.737e-05/0.1922, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.469e-05/0.1923, allocations: 7.922 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.242e-05/0.1923, allocations: 0 / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008605/0.1932, allocations: 151.3 kB / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.088e-05/0.1933, allocations: 19.92 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.976e-05/0.1934, allocations: 7.984 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.683e-05/0.1934, allocations: 7.938 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.368e-05/0.1935, allocations: 8 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.1935, allocations: 4 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006861/0.1942, allocations: 343.3 kB / 0.6827 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.673e-05/0.1943, allocations: 11.92 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.1943, allocations: 11.94 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.1947, allocations: 147.9 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1947, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1947, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1947, allocations: 0 / 0.6828 GB, free: 14.02 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.0005911/0.1953, allocations: 359.4 kB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.1954, allocations: 16.03 kB / 0.6832 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.1954, allocations: 30.75 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.1955, allocations: 4.844 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.1956, allocations: 164.4 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.1957, allocations: 4.359 kB / 0.6834 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.1957, allocations: 4.375 kB / 0.6834 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.1958, allocations: 34.27 kB / 0.6834 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1959, allocations: 3.938 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.1959, allocations: 7.984 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1959, allocations: 0 / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.531e-05/0.196, allocations: 15.94 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002138/0.1962, allocations: 157.6 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.1964, allocations: 42.61 kB / 0.6836 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.16e-05/0.1965, allocations: 16.95 kB / 0.6837 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.1965, allocations: 3.984 kB / 0.6837 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.1965, allocations: 38.56 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.313e-06/0.1966, allocations: 0 / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007886/0.1973, allocations: 310.1 kB / 0.684 GB, free: 12.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1974, allocations: 51.41 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.079e-05/0.1975, allocations: 98.17 kB / 0.6841 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.1975, allocations: 25.7 kB / 0.6842 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.1976, allocations: 88.14 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.1976, allocations: 15.66 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.1976, allocations: 29.7 kB / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1978, allocations: 314.8 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.142e-05/0.1978, allocations: 8 kB / 0.6846 GB, free: 11.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.423e-05/0.1978, allocations: 11.98 kB / 0.6846 GB, free: 11.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.622e-05/0.1979, allocations: 36.84 kB / 0.6846 GB, free: 11.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.1979, allocations: 0 / 0.6846 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001227/0.1981, allocations: 77.61 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1981, allocations: 4 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1981, allocations: 4.188 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.1981, allocations: 0 / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.08e-05/0.1982, allocations: 15.94 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1982, allocations: 0 / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.361e-05/0.1982, allocations: 7.984 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1982, allocations: 4 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB 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 7.87e-05/0.1983, allocations: 111.1 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.1984, allocations: 7.938 kB / 0.6849 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.1985, allocations: 77.66 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1985, allocations: 4 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1986, allocations: 4 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.1986, allocations: 3.984 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.1989, allocations: 311.4 kB / 0.6852 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1989, allocations: 4 kB / 0.6852 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.677e-05/0.199, allocations: 8 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.199, allocations: 0 / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.199, allocations: 4 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.199, allocations: 0 / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1991, allocations: 4.031 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.1993, allocations: 184.2 kB / 0.6854 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.63e-05/0.1993, allocations: 85.12 kB / 0.6855 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.1993, allocations: 4 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.1994, allocations: 4 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.191e-05/0.1995, allocations: 0 / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.1995, allocations: 8.062 kB / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.194e-05/0.1995, allocations: 79.27 kB / 0.6856 GB, free: 10.77 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1995, allocations: 0 / 0.6856 GB, free: 10.77 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1998, allocations: 20 kB / 0.6856 GB, free: 10.75 MB / 494.1 MB 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.0005321/0.2004, allocations: 0.7367 MB / 0.6863 GB, free: 9.988 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.2005, allocations: 32 kB / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2005, allocations: 0 / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.396e-05/0.2005, allocations: 23.92 kB / 0.6864 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.2008, allocations: 8 kB / 0.6864 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.2021, allocations: 1.322 MB / 0.6877 GB, free: 8.523 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.2023, allocations: 0.6807 MB / 0.6884 GB, free: 7.816 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.577e-05/0.2024, allocations: 3.984 kB / 0.6884 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.2024, allocations: 15.44 kB / 0.6884 GB, free: 7.797 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2024, allocations: 0 / 0.6884 GB, free: 7.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.2266, allocations: 1.614 MB / 0.69 GB, free: 6.359 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11, allocations: 12.88 kB / 0.69 GB, free: 6.352 MB / 494.1 MB (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)