Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_8_Buildings_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.001178/0.001178, allocations: 105.4 kB / 15.7 MB, free: 24 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.001319/0.001319, allocations: 197.5 kB / 16.64 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.785/1.785, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 65.45 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1961, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002351/0.1984, allocations: 1.277 MB / 0.7849 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000922/0.1994, allocations: 0.6188 MB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.144e-05/0.1994, allocations: 0 / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.874e-05/0.1994, allocations: 3.938 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.283e-05/0.1995, allocations: 11.92 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.2, allocations: 147.4 kB / 0.7857 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.892e-05/0.2, allocations: 23.92 kB / 0.7857 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.596e-05/0.2001, allocations: 11.98 kB / 0.7857 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.356e-05/0.2001, allocations: 11.94 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.553e-05/0.2002, allocations: 11.98 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2002, allocations: 4 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004736/0.2007, allocations: 347.2 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.2007, allocations: 8 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.403e-05/0.2007, allocations: 15.92 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.201, allocations: 159.8 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.201, allocations: 0 / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.603e-06/0.201, allocations: 3.938 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.201, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 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.0003859/0.2014, allocations: 363.4 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2014, allocations: 12.02 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.2015, allocations: 34.75 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.564e-05/0.2015, allocations: 4.938 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.2016, allocations: 168.3 kB / 0.7868 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.2016, allocations: 4.375 kB / 0.7868 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.2017, allocations: 4.375 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.2018, allocations: 54.23 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2018, allocations: 7.875 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.2018, allocations: 0 / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2018, allocations: 0 / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.775e-05/0.2019, allocations: 19.98 kB / 0.7869 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.2021, allocations: 173.6 kB / 0.787 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.2022, allocations: 54.56 kB / 0.7871 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.327e-05/0.2022, allocations: 28.84 kB / 0.7871 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2023, allocations: 4 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.2023, allocations: 34.5 kB / 0.7871 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2023, allocations: 3.938 kB / 0.7871 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.001097/0.2034, allocations: 0.5917 MB / 0.7877 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.2034, allocations: 51.41 kB / 0.7878 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.675e-05/0.2035, allocations: 93.86 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.2035, allocations: 29.7 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.2036, allocations: 92.25 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.2036, allocations: 31.47 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.2037, allocations: 33.64 kB / 0.788 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2038, allocations: 314.8 kB / 0.7883 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.986e-05/0.2038, allocations: 19.98 kB / 0.7884 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.172e-05/0.2039, allocations: 31.98 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.461e-05/0.2039, allocations: 55.95 kB / 0.7884 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.204, allocations: 3.938 kB / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001492/0.2041, allocations: 105.5 kB / 0.7886 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2041, allocations: 8 kB / 0.7886 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2041, allocations: 0 / 0.7886 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2042, allocations: 4 kB / 0.7886 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.2043, allocations: 16 kB / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2043, allocations: 0 / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.639e-05/0.2043, allocations: 7.984 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.2043, allocations: 4 kB / 0.7886 GB, free: 7.867 MB / 0.6075 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 7.285e-05/0.2044, allocations: 118.4 kB / 0.7887 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.2044, allocations: 7.938 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.2046, allocations: 105.6 kB / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2046, allocations: 0 / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2046, allocations: 0 / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.2046, allocations: 7.984 kB / 0.7888 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.205, allocations: 350.4 kB / 0.7892 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.205, allocations: 3.984 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.2051, allocations: 20 kB / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2052, allocations: 0 / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.954e-06/0.2052, allocations: 0 / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2052, allocations: 4 kB / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2052, allocations: 0 / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.2054, allocations: 223.3 kB / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.2055, allocations: 81.02 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.2055, allocations: 8.031 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.133e-05/0.2056, allocations: 0 / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.005e-05/0.2056, allocations: 7.984 kB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2056, allocations: 4 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.964e-05/0.2056, allocations: 83.34 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2057, allocations: 0 / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002727/0.2059, allocations: 39.98 kB / 0.7896 GB, free: 6.715 MB / 0.6075 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.0005474/0.2065, allocations: 0.7787 MB / 0.7904 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001273/0.2066, allocations: 56.69 kB / 0.7904 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.2066, allocations: 0 / 0.7904 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.855e-05/0.2067, allocations: 39.92 kB / 0.7905 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.2069, allocations: 15.14 kB / 0.7905 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.2083, allocations: 1.524 MB / 0.792 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.2085, allocations: 0.6846 MB / 0.7926 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.2086, allocations: 16.03 kB / 0.7926 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.2086, allocations: 19.44 kB / 0.7927 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2086, allocations: 0 / 0.7927 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.2261, allocations: 2.037 MB / 0.7947 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/8.044, allocations: 5.766 kB / 0.7947 GB, free: 1.594 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)